mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
🐛 Fix some wrong type hint
This commit is contained in:
parent
4a22a50f19
commit
b1ab5d91a4
@ -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]:
|
||||
"""
|
||||
:说明:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user