🐛 Fix some wrong type hint

This commit is contained in:
Mix 2020-12-05 17:19:23 +08:00 committed by GitHub
parent 4a22a50f19
commit b1ab5d91a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ VERSION = _dist.parsed_version
_driver: Optional[Driver] = None
def get_driver() -> Union[NoReturn, Driver]:
def get_driver() -> Driver:
"""
:说明:
@ -111,7 +111,7 @@ def get_asgi():
return driver.asgi
def get_bots() -> Union[NoReturn, Dict[str, Bot]]:
def get_bots() -> Dict[str, Bot]:
"""
:说明: