mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:15:24 +08:00
🥚 add __version__
This commit is contained in:
parent
c4f99d8c77
commit
730cb82eb7
@ -21,8 +21,13 @@
|
||||
"""
|
||||
|
||||
import importlib
|
||||
import pkg_resources
|
||||
from nonebot.typing import Bot, Dict, Type, Union, Driver, Optional, NoReturn
|
||||
|
||||
_dist: pkg_resources.Distribution = pkg_resources.get_distribution("nonebot2")
|
||||
__version__ = _dist.version
|
||||
VERSION = _dist.parsed_version
|
||||
|
||||
_driver: Optional[Driver] = None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user