fix(ci): annotate cache.py:38 redis return type (CAR-1330 dev lint fix)
CI / lint (pull_request) Successful in 6s
CI / typecheck (pull_request) Successful in 16s
CI / test (pull_request) Successful in 21s
CI / build-and-push (pull_request) Has been skipped

mypy no-any-return: annotate value: str | bytes | None so mypy doesn't
widen redis client return to Any. Pre-existing dev branch issue blocking
CAR-1356. Mirrors CAR-1340 uat fix (2b20946).
This commit is contained in:
cs_betty
2026-06-09 17:34:21 +00:00
parent 94d6173054
commit c1147590dd
+1 -1
View File
@@ -35,7 +35,7 @@ class CacheClient:
async def get(self, key: str) -> str | None:
if not self._client:
return None
value = await self._client.get(key)
value: str | bytes | None = await self._client.get(key)
if value is None:
return None
if isinstance(value, bytes):