nonebot2/nonebot/adapters/__init__.py

15 lines
335 B
Python
Raw Normal View History

2021-02-19 15:24:52 +08:00
from typing import Iterable
2020-07-11 17:32:03 +08:00
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
2021-02-19 15:24:52 +08:00
from ._base import Bot, Event, Message, MessageSegment