remove polyfill for dataclasses

This commit is contained in:
Dulmandakh 2024-05-15 07:57:24 +08:00
parent 5fb7b54377
commit 03497d1f29
2 changed files with 1 additions and 1226 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,7 @@ 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