🥚 add __version__

This commit is contained in:
yanyongyu 2020-11-15 16:18:23 +08:00
parent c4f99d8c77
commit 730cb82eb7

View File

@ -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