ruff format corrections
Code Quality Pipeline / code-quality (pull_request) Successful in 16s
Test Python Package / test (pull_request) Failing after 9s

This commit is contained in:
Brian Bjarke Jensen
2025-09-14 16:17:04 +02:00
parent 59a943e39a
commit 5d7afe7a6c
4 changed files with 9 additions and 19 deletions
+3 -13
View File
@@ -43,17 +43,10 @@ class RedisAdapter(
return self
def __exit__(
self,
exc_type: type | None,
exc_val: object | None,
exc_tb: object | None
self, exc_type: type | None, exc_val: object | None, exc_tb: object | None
) -> None:
"""Exit the context."""
ctx_info = {
'exc_type': exc_type,
'exc_val': exc_val,
'exc_tb': exc_tb
}
ctx_info = {"exc_type": exc_type, "exc_val": exc_val, "exc_tb": exc_tb}
if any(
(
exc_type is not None,
@@ -148,9 +141,6 @@ class RedisAdapter(
list[bytes],
self._client.keys(pattern),
)
keys: list[str] = [
key.decode(self.encoding)
for key in keys_raw
]
keys: list[str] = [key.decode(self.encoding) for key in keys_raw]
self.logger.debug(f"Got {keys} matching {pattern}")
return keys