⚰️ remove dead namespace (#1306)

This commit is contained in:
Ju4tCode 2022-10-06 11:50:18 +08:00 committed by GitHub
parent 2de8c66c70
commit cec45cf89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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