mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +08:00
15 lines
335 B
Python
15 lines
335 B
Python
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__)
|
|
del pkgutil
|
|
except Exception:
|
|
pass
|
|
|
|
from ._base import Bot, Event, Message, MessageSegment
|