From 5cd61c09a8483269fe31dd612c99b72c03a23022 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Sat, 18 Sep 2021 20:22:38 +0800 Subject: [PATCH] :rotating_light: re-export base adapter init according to pep484 --- nonebot/adapters/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nonebot/adapters/__init__.py b/nonebot/adapters/__init__.py index 6c1b6f45..45beb1f5 100644 --- a/nonebot/adapters/__init__.py +++ b/nonebot/adapters/__init__.py @@ -20,7 +20,8 @@ except ImportError: except Exception: pass -from ._bot import Bot -from ._event import Event -from ._template import MessageTemplate -from ._message import Message, MessageSegment +from ._bot import Bot as Bot +from ._event import Event as Event +from ._template import MessageTemplate as MessageTemplate +from ._message import Message as Message +from ._message import MessageSegment as MessageSegment