mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 03:52:24 +03:00
Fixed Python 3.8 integration
This commit is contained in:
parent
9b28a7f182
commit
2b3356fd98
|
@ -3,7 +3,10 @@ from .field import Field
|
||||||
from .interface import Interface
|
from .interface import Interface
|
||||||
from .utils import yank_fields_from_attrs
|
from .utils import yank_fields_from_attrs
|
||||||
|
|
||||||
from ..pyutils.dataclasses import make_dataclass, field
|
try:
|
||||||
|
from dataclasses import make_dataclass, field
|
||||||
|
except ImportError:
|
||||||
|
from ..pyutils.dataclasses import make_dataclass, field
|
||||||
|
|
||||||
# For static type checking with Mypy
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user