mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-17 06:50:24 +00:00
chore: add system version check for type imports
This commit is contained in:
parent
fe65a9f542
commit
f8773956ed
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
from typing import Final, final
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Final, final
|
||||
else:
|
||||
from typing_extensions import Final, final
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue