We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7317957 commit 6df6e64Copy full SHA for 6df6e64
CacheToolsUtils.py
@@ -356,7 +356,8 @@ def hits(self) -> float|None:
356
if (c1 and "type" in c1 and c1["type"] == 1 and
357
c2 and "type" in c2 and c2["type"] == 1):
358
return float(c1["hits"] + c2["hits"]) / max(c1["reads"] + c2["reads"], 1)
359
- # else None
+ # else
360
+ return None
361
362
def reset(self): # pragma: no cover
363
self._cache.reset() # type: ignore
0 commit comments