mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-20 02:46:48 +00:00
🏗️ change nonebot project structure
This commit is contained in:
@ -20,6 +20,17 @@ if TYPE_CHECKING:
|
||||
from nonebot.config import Config
|
||||
from nonebot.drivers import Driver, WebSocket
|
||||
|
||||
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
|
||||
|
||||
|
||||
class Bot(abc.ABC):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user