From ae8ba9f55d7b14bd9b328a7b35bf3d5c62b77c71 Mon Sep 17 00:00:00 2001 From: Akirami <66513481+A-kirami@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:31:41 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20Docs:=20=E6=9B=B4=E6=96=B0=20`get=5Fas?= =?UTF-8?q?gi`=20=E5=87=BD=E6=95=B0=E7=9A=84=E6=96=87=E6=A1=A3=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=20(#2359)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot/__init__.py b/nonebot/__init__.py index c9e4020e..a232a655 100644 --- a/nonebot/__init__.py +++ b/nonebot/__init__.py @@ -170,7 +170,7 @@ def get_app() -> Any: def get_asgi() -> Any: - """获取全局 {ref}`nonebot.drivers.ASGIMixin` 对应 + """获取全局 {ref}`nonebot.drivers.ASGIMixin` 对应的 [ASGI](https://asgi.readthedocs.io/) 对象。 返回: @@ -189,7 +189,7 @@ def get_asgi() -> Any: driver = get_driver() assert isinstance( driver, ASGIMixin - ), "asgi object is only available for reverse driver" + ), "asgi object is only available for asgi driver" return driver.asgi