mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Bump ruff to 0.9.1 (#135197)
This commit is contained in:
committed by
GitHub
parent
2b51ab1c75
commit
8db63adc11
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user