🚨 re-export according to pep484

This commit is contained in:
yanyongyu
2021-09-18 16:11:03 +08:00
parent a273d75b07
commit 4f8771acbd
8 changed files with 79 additions and 34 deletions

View File

@ -12,7 +12,13 @@ CQHTTP (OneBot) v11 协议适配
from .event import *
from .permission import *
from .message import Message, MessageSegment
from .utils import log, escape, unescape, _b2s
from .bot import Bot, _check_at_me, _check_nickname, _check_reply, _handle_api_result
from .exception import CQHTTPAdapterException, ApiNotAvailable, ActionFailed, NetworkError
from .bot import Bot as Bot
from .utils import log as log
from .utils import escape as escape
from .message import Message as Message
from .utils import unescape as unescape
from .exception import ActionFailed as ActionFailed
from .exception import NetworkError as NetworkError
from .message import MessageSegment as MessageSegment
from .exception import ApiNotAvailable as ApiNotAvailable
from .exception import CQHTTPAdapterException as CQHTTPAdapterException

View File

@ -1,11 +1,12 @@
import inspect
from typing_extensions import Literal
from typing import Type, List, Optional, TYPE_CHECKING
from typing import TYPE_CHECKING, List, Type, Optional
from pydantic import BaseModel
from pygtrie import StringTrie
from nonebot.utils import escape_tag
from nonebot.typing import overrides
from nonebot.utils import escape_tag
from nonebot.exception import NoLogException
from nonebot.adapters import Event as BaseEvent