From 62519c272e16270387e9df2711c19fe9475750b1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 26 Mar 2025 06:32:29 -0600 Subject: [PATCH] Improve typing --- frigate/camera/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/camera/state.py b/frigate/camera/state.py index 7f355c654..65a3dcf5d 100644 --- a/frigate/camera/state.py +++ b/frigate/camera/state.py @@ -5,7 +5,7 @@ import logging import os import threading from collections import defaultdict -from typing import Callable +from typing import Any, Callable import cv2 import numpy as np @@ -65,7 +65,7 @@ class CameraState: else 5 ) - def get_current_frame(self, draw_options={}): + def get_current_frame(self, draw_options: dict[str, Any] = {}): with self.current_frame_lock: frame_copy = np.copy(self._current_frame) frame_time = self.current_frame_time