diff --git a/nonebot/__init__.py b/nonebot/__init__.py index abf1eb58..135a7bf0 100644 --- a/nonebot/__init__.py +++ b/nonebot/__init__.py @@ -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]: """ :说明: