mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 12:06:45 +00:00
⬆️ auto update by pre-commit hooks (#3301)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4d9f5f0953
commit
af5dfcee72
@ -190,9 +190,9 @@ def get_asgi() -> Any:
|
||||
```
|
||||
"""
|
||||
driver = get_driver()
|
||||
assert isinstance(
|
||||
driver, ASGIMixin
|
||||
), "asgi object is only available for asgi driver"
|
||||
assert isinstance(driver, ASGIMixin), (
|
||||
"asgi object is only available for asgi driver"
|
||||
)
|
||||
return driver.asgi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user