mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 00:31:14 +00:00
Adjust comment
This commit is contained in:
@ -71,6 +71,9 @@ def get_bot() -> NoneBot:
|
|||||||
"""
|
"""
|
||||||
Get the NoneBot instance.
|
Get the NoneBot instance.
|
||||||
|
|
||||||
|
The result is ensured to be not None, otherwise an exception will
|
||||||
|
be raised.
|
||||||
|
|
||||||
:raise ValueError: instance not initialized
|
:raise ValueError: instance not initialized
|
||||||
"""
|
"""
|
||||||
if _bot is None:
|
if _bot is None:
|
||||||
|
Reference in New Issue
Block a user