mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 04:06:28 +08:00
🔥 remove unused import
This commit is contained in:
parent
9b9941e6c5
commit
7ebae277d1
@ -2,7 +2,7 @@ import abc
|
|||||||
import asyncio
|
import asyncio
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing_extensions import Protocol
|
from typing_extensions import Protocol
|
||||||
from typing import TYPE_CHECKING, Any, Set, Tuple, Union, Optional
|
from typing import TYPE_CHECKING, Any, Set, Union, Optional
|
||||||
|
|
||||||
from nonebot.log import logger
|
from nonebot.log import logger
|
||||||
from nonebot.config import Config
|
from nonebot.config import Config
|
||||||
|
@ -8,16 +8,7 @@ NoneBot 内部处理并按优先级分发事件给所有事件响应器,提供
|
|||||||
import asyncio
|
import asyncio
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from contextlib import AsyncExitStack
|
from contextlib import AsyncExitStack
|
||||||
from typing import (
|
from typing import TYPE_CHECKING, Any, Set, Dict, Type, Optional, Coroutine
|
||||||
TYPE_CHECKING,
|
|
||||||
Any,
|
|
||||||
Set,
|
|
||||||
Dict,
|
|
||||||
List,
|
|
||||||
Type,
|
|
||||||
Optional,
|
|
||||||
Coroutine,
|
|
||||||
)
|
|
||||||
|
|
||||||
from nonebot import params
|
from nonebot import params
|
||||||
from nonebot.log import logger
|
from nonebot.log import logger
|
||||||
@ -33,7 +24,6 @@ from nonebot.exception import (
|
|||||||
)
|
)
|
||||||
from nonebot.typing import (
|
from nonebot.typing import (
|
||||||
T_State,
|
T_State,
|
||||||
T_Handler,
|
|
||||||
T_DependencyCache,
|
T_DependencyCache,
|
||||||
T_RunPreProcessor,
|
T_RunPreProcessor,
|
||||||
T_RunPostProcessor,
|
T_RunPostProcessor,
|
||||||
|
@ -24,10 +24,8 @@ from typing import (
|
|||||||
Union,
|
Union,
|
||||||
TypeVar,
|
TypeVar,
|
||||||
Callable,
|
Callable,
|
||||||
NoReturn,
|
|
||||||
Optional,
|
Optional,
|
||||||
Awaitable,
|
Awaitable,
|
||||||
ForwardRef,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
@ -8,11 +8,9 @@ from contextlib import asynccontextmanager
|
|||||||
from typing_extensions import ParamSpec, get_args, get_origin
|
from typing_extensions import ParamSpec, get_args, get_origin
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
Dict,
|
|
||||||
Type,
|
Type,
|
||||||
Tuple,
|
Tuple,
|
||||||
Union,
|
Union,
|
||||||
Generic,
|
|
||||||
TypeVar,
|
TypeVar,
|
||||||
Callable,
|
Callable,
|
||||||
Optional,
|
Optional,
|
||||||
|
Loading…
Reference in New Issue
Block a user