mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-04 00:46:43 +00:00 
			
		
		
		
	🥚 add __version__
This commit is contained in:
		@@ -21,8 +21,13 @@
 | 
				
			|||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import importlib
 | 
					import importlib
 | 
				
			||||||
 | 
					import pkg_resources
 | 
				
			||||||
from nonebot.typing import Bot, Dict, Type, Union, Driver, Optional, NoReturn
 | 
					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
 | 
					_driver: Optional[Driver] = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user