mirror of
https://github.com/graphql-python/graphene.git
synced 2025-03-04 20:05:48 +03:00
remove polyfill for dataclasses (#1545)
* remove polyfill for dataclasses * fix lint
This commit is contained in:
parent
3cd0c30de8
commit
82d0a68a81
File diff suppressed because it is too large
Load Diff
|
@ -5,10 +5,8 @@ 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
|
||||||
|
|
||||||
try:
|
from dataclasses import make_dataclass, field
|
||||||
from dataclasses import make_dataclass, field
|
|
||||||
except ImportError:
|
|
||||||
from ..pyutils.dataclasses import make_dataclass, field # type: ignore
|
|
||||||
# For static type checking with type checker
|
# For static type checking with type checker
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Dict, Iterable, Type # NOQA
|
from typing import Dict, Iterable, Type # NOQA
|
||||||
|
|
Loading…
Reference in New Issue
Block a user