Enable mypy for DB and fix types (#19434)

* Install peewee type hints

* Models now have proper types

* Fix iterator type

* Enable debug builds with dev reqs installed

* Install as wheel

* Fix cast type
This commit is contained in:
Nicolas Mowen
2025-08-16 10:20:33 -05:00
committed by Blake Blackshear
parent 6ecc631486
commit 7c1681e344
7 changed files with 31 additions and 16 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
import datetime
import json
import logging
from typing import Any, Callable, Optional
from typing import Any, Callable, Optional, cast
from frigate.camera import PTZMetrics
from frigate.camera.activity_manager import CameraActivityManager
@@ -135,7 +135,7 @@ class Dispatcher:
def handle_update_event_description() -> None:
event: Event = Event.get(Event.id == payload["id"])
event.data["description"] = payload["description"]
cast(dict, event.data)["description"] = payload["description"]
event.save()
self.publish(
"tracked_object_update",