mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 14:57:42 +00:00
Partial fix for mypy issues
This commit is contained in:
@@ -39,6 +39,7 @@ class AlertProvider:
|
||||
self._add_alert(alert)
|
||||
|
||||
def _add_alert(self, alert: Alert) -> None:
|
||||
assert alert.id is not None, "infer_missing() always assigns an id"
|
||||
if not alert.expired():
|
||||
self._alerts.set(alert.id, alert)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user