🚨 Develop: 完全使用 ruff 替代 isort 与 black (#3151)

This commit is contained in:
Ju4tCode
2024-12-01 12:31:11 +08:00
committed by GitHub
parent 6dad4d2a74
commit 081dc8352d
83 changed files with 1815 additions and 1769 deletions

View File

@ -1,6 +1,6 @@
from typing import TYPE_CHECKING, Union, TypeVar, overload
from typing import TYPE_CHECKING, TypeVar, Union, overload
from .abstract import Mixin, Driver
from .abstract import Driver, Mixin
D = TypeVar("D", bound="Driver")
@ -39,6 +39,4 @@ def combine_driver(
+ "+".join(x.type.__get__(self) for x in mixins) # type: ignore
)
return type(
"CombinedDriver", (*mixins, driver), {"type": property(type_)}
) # type: ignore
return type("CombinedDriver", (*mixins, driver), {"type": property(type_)}) # type: ignore