From cec45cf89c28abc072a5df3cbe4f48857de15ada Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Thu, 6 Oct 2022 11:50:18 +0800 Subject: [PATCH] :coffin: remove dead namespace (#1306) --- nonebot/adapters/__init__.py | 15 --------------- 1 file changed, 15 deletions(-) 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