🔥 remove unused import

This commit is contained in:
yanyongyu 2021-12-25 17:44:53 +08:00
parent 9b9941e6c5
commit 7ebae277d1
4 changed files with 2 additions and 16 deletions

View File

@ -2,7 +2,7 @@ import abc
import asyncio
from functools import partial
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.config import Config

View File

@ -8,16 +8,7 @@ NoneBot 内部处理并按优先级分发事件给所有事件响应器,提供
import asyncio
from datetime import datetime
from contextlib import AsyncExitStack
from typing import (
TYPE_CHECKING,
Any,
Set,
Dict,
List,
Type,
Optional,
Coroutine,
)
from typing import TYPE_CHECKING, Any, Set, Dict, Type, Optional, Coroutine
from nonebot import params
from nonebot.log import logger
@ -33,7 +24,6 @@ from nonebot.exception import (
)
from nonebot.typing import (
T_State,
T_Handler,
T_DependencyCache,
T_RunPreProcessor,
T_RunPostProcessor,

View File

@ -24,10 +24,8 @@ from typing import (
Union,
TypeVar,
Callable,
NoReturn,
Optional,
Awaitable,
ForwardRef,
)
if TYPE_CHECKING:

View File

@ -8,11 +8,9 @@ from contextlib import asynccontextmanager
from typing_extensions import ParamSpec, get_args, get_origin
from typing import (
Any,
Dict,
Type,
Tuple,
Union,
Generic,
TypeVar,
Callable,
Optional,