🔀 Merge pull request #53

Add __version__
This commit is contained in:
Ju4tCode 2020-11-15 16:28:17 +08:00 committed by GitHub
commit b5ea66359c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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