Partial fix for mypy issues

This commit is contained in:
Ian Renton
2026-09-20 20:42:16 +01:00
parent 93ea27510f
commit 203758fa2d
25 changed files with 244 additions and 147 deletions
+2 -1
View File
@@ -37,8 +37,9 @@ class APIDxStatsHandler(tornado.web.RequestHandler):
def get(self) -> None:
try:
assert self._spots is not None, "initialize() must be called before get()"
one_hour_ago = (datetime.now(pytz.UTC) - timedelta(hours=1)).timestamp()
counts = Counter()
counts: Counter[tuple[str, str, str]] = Counter()
for key in self._spots.keys(): # noqa: SIM118
spot = self._spots.get(key)