From b1ab5d91a448a6bf2869dfae4e84573a0c5646cb Mon Sep 17 00:00:00 2001 From: Mix <32300164+mnixry@users.noreply.github.com> Date: Sat, 5 Dec 2020 17:19:23 +0800 Subject: [PATCH] :bug: Fix some wrong type hint --- nonebot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]: """ :说明: