Skip to content

Commit 6df6e64

Browse files
author
Fabien Coelho
committed
please mypy
1 parent 7317957 commit 6df6e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CacheToolsUtils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ def hits(self) -> float|None:
356356
if (c1 and "type" in c1 and c1["type"] == 1 and
357357
c2 and "type" in c2 and c2["type"] == 1):
358358
return float(c1["hits"] + c2["hits"]) / max(c1["reads"] + c2["reads"], 1)
359-
# else None
359+
# else
360+
return None
360361

361362
def reset(self): # pragma: no cover
362363
self._cache.reset() # type: ignore

0 commit comments

Comments
 (0)