core: cleanup/sort imports according to ruff check --select I

This commit is contained in:
Dima Gerasimov 2024-08-16 13:25:19 +03:00
parent 7023088d13
commit 478e288ea8
45 changed files with 235 additions and 170 deletions

View file

@ -2,7 +2,7 @@ from .internal import assert_subpackage; assert_subpackage(__name__)
import dataclasses as dcl
import inspect
from typing import TypeVar, Type, Any
from typing import Any, Type, TypeVar
D = TypeVar('D')
@ -22,6 +22,8 @@ def _freeze_dataclass(Orig: Type[D]):
# todo need some decorator thingie?
from typing import Generic
class Freezer(Generic[D]):
'''
Some magic which converts dataclass properties into fields.