type fixes

This commit is contained in:
Blake Blackshear 2022-04-18 06:52:13 -05:00
parent d890217447
commit f2030d301f
2 changed files with 2 additions and 3 deletions

View File

@ -5,11 +5,10 @@ from peewee import (
DateTimeField, DateTimeField,
FloatField, FloatField,
BooleanField, BooleanField,
JSONField,
TextField, TextField,
IntegerField, IntegerField,
) )
from playhouse.sqlite_ext import * from playhouse.sqlite_ext import JSONField
class Event(Model): # type: ignore[misc] class Event(Model): # type: ignore[misc]

View File

@ -461,7 +461,7 @@ class CameraState:
def finished(self, obj_id): def finished(self, obj_id):
del self.tracked_objects[obj_id] del self.tracked_objects[obj_id]
def on(self, event_type: str, callback: Callable[[Dict], None]): def on(self, event_type: str, callback: Callable[[dict], None]):
self.callbacks[event_type].append(callback) self.callbacks[event_type].append(callback)
def update(self, frame_time, current_detections, motion_boxes, regions): def update(self, frame_time, current_detections, motion_boxes, regions):