remove polyfill for dataclasses (#1545)

* remove polyfill for dataclasses

* fix lint
This commit is contained in:
Dulmandakh 2024-05-16 16:09:37 +08:00 committed by GitHub
parent 3cd0c30de8
commit 82d0a68a81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1226 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,8 @@ from .field import Field
from .interface import Interface
from .utils import yank_fields_from_attrs
try:
from dataclasses import make_dataclass, field
except ImportError:
from ..pyutils.dataclasses import make_dataclass, field # type: ignore
from dataclasses import make_dataclass, field
# For static type checking with type checker
if TYPE_CHECKING:
from typing import Dict, Iterable, Type # NOQA