Bump ruff to 0.9.1 (#135197)

This commit is contained in:
Joost Lekkerkerker
2025-01-14 11:46:12 +01:00
committed by GitHub
parent 2b51ab1c75
commit 8db63adc11
49 changed files with 256 additions and 265 deletions

View File

@@ -46,9 +46,9 @@ def request_handler_factory(
) -> Callable[[web.Request], Awaitable[web.StreamResponse]]:
"""Wrap the handler classes."""
is_coroutinefunction = asyncio.iscoroutinefunction(handler)
assert is_coroutinefunction or is_callback(
handler
), "Handler should be a coroutine or a callback."
assert is_coroutinefunction or is_callback(handler), (
"Handler should be a coroutine or a callback."
)
async def handle(request: web.Request) -> web.StreamResponse:
"""Handle incoming request."""