diff --git a/nonebot/adapters/__init__.py b/nonebot/adapters/__init__.py index 0adff3e6..fa109d7a 100644 --- a/nonebot/adapters/__init__.py +++ b/nonebot/adapters/__init__.py @@ -7,21 +7,6 @@ FrontMatter: description: nonebot.adapters 模块 """ -from typing import Iterable - -try: - import pkg_resources - - pkg_resources.declare_namespace(__name__) - del pkg_resources -except ImportError: - import pkgutil - - __path__: Iterable[str] = pkgutil.extend_path(__path__, __name__) # type: ignore - del pkgutil -except Exception: - pass - from nonebot.internal.adapter import Bot as Bot from nonebot.internal.adapter import Event as Event from nonebot.internal.adapter import Adapter as Adapter