fix typing

This commit is contained in:
Nick Mowen 2023-04-29 13:20:48 -06:00
parent 0245937963
commit ca90946e2e

View File

@ -6,7 +6,6 @@ import threading
from enum import Enum from enum import Enum
from pathlib import Path from pathlib import Path
from typing import Any
from peewee import fn from peewee import fn
@ -106,7 +105,10 @@ class EventProcessor(threading.Thread):
logger.info(f"Exiting event processor...") logger.info(f"Exiting event processor...")
def handle_object_detection( def handle_object_detection(
self, event_type: str, camera: str, event_data: dict[str, Any] self,
event_type: str,
camera: str,
event_data: Event,
) -> None: ) -> None:
"""handle tracked object event updates.""" """handle tracked object event updates."""
# if this is the first message, just store it and continue, its not time to insert it in the db # if this is the first message, just store it and continue, its not time to insert it in the db