mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 01:18:19 +08:00
⚰️ remove dead namespace (#1306)
This commit is contained in:
parent
2de8c66c70
commit
cec45cf89c
@ -7,21 +7,6 @@ FrontMatter:
|
|||||||
description: nonebot.adapters 模块
|
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 Bot as Bot
|
||||||
from nonebot.internal.adapter import Event as Event
|
from nonebot.internal.adapter import Event as Event
|
||||||
from nonebot.internal.adapter import Adapter as Adapter
|
from nonebot.internal.adapter import Adapter as Adapter
|
||||||
|
Loading…
Reference in New Issue
Block a user