mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
🚨 Develop: 完全使用 ruff 替代 isort 与 black (#3151)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user