1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Bump ruff to 0.4.2 (#116201)

* Bump ruff to 0.4.2

* review comments
This commit is contained in:
Sid
2024-04-26 08:48:32 +02:00
committed by GitHub
parent 623d34e1e0
commit e662e3b65c
20 changed files with 86 additions and 77 deletions

View File

@@ -499,7 +499,7 @@ def aiohttp_client(
elif isinstance(__param, BaseTestServer):
client = TestClient(__param, loop=loop, **kwargs)
else:
raise TypeError("Unknown argument type: %r" % type(__param))
raise TypeError(f"Unknown argument type: {type(__param)!r}")
await client.start_server()
clients.append(client)
@@ -542,8 +542,8 @@ async def hass(
else:
exceptions.append(
Exception(
"Received exception handler without exception, but with message: %s"
% context["message"]
"Received exception handler without exception, "
f"but with message: {context["message"]}"
)
)
orig_exception_handler(loop, context)