From beef564a22de06f4a5b338009603054842639bc1 Mon Sep 17 00:00:00 2001 From: Akirami <66513481+A-kirami@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:37:16 +0800 Subject: [PATCH] :fire: remove unused imports (#1236) --- nonebot/internal/params.py | 2 -- nonebot/internal/permission.py | 2 +- nonebot/message.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/nonebot/internal/params.py b/nonebot/internal/params.py index 8cbef42b..a4782725 100644 --- a/nonebot/internal/params.py +++ b/nonebot/internal/params.py @@ -5,8 +5,6 @@ from typing import TYPE_CHECKING, Any, Type, Tuple, Literal, Callable, Optional, from pydantic.fields import Required, Undefined, ModelField -from nonebot.log import logger -from nonebot.exception import TypeMisMatch from nonebot.dependencies.utils import check_field_type from nonebot.dependencies import Param, Dependent, CustomConfig from nonebot.typing import T_State, T_Handler, T_DependencyCache diff --git a/nonebot/internal/permission.py b/nonebot/internal/permission.py index 48c054a8..0ea7f4f4 100644 --- a/nonebot/internal/permission.py +++ b/nonebot/internal/permission.py @@ -1,6 +1,6 @@ import asyncio from contextlib import AsyncExitStack -from typing import Any, Set, Tuple, Union, NoReturn, Optional, Coroutine +from typing import Set, Tuple, Union, NoReturn, Optional from nonebot.dependencies import Dependent from nonebot.utils import run_coro_with_catch diff --git a/nonebot/message.py b/nonebot/message.py index 762c2e6a..b3639caf 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -11,7 +11,7 @@ import asyncio import contextlib from datetime import datetime from contextlib import AsyncExitStack -from typing import TYPE_CHECKING, Any, Set, Dict, Type, Optional, Coroutine +from typing import TYPE_CHECKING, Any, Set, Dict, Type, Optional from nonebot.log import logger from nonebot.rule import TrieRule