🔥 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 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

View File

@ -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,

View File

@ -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:

View File

@ -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,