Improve typing

This commit is contained in:
Nicolas Mowen 2025-03-26 06:32:29 -06:00
parent 9e6ff8b927
commit 62519c272e

View File

@ -5,7 +5,7 @@ import logging
import os import os
import threading import threading
from collections import defaultdict from collections import defaultdict
from typing import Callable from typing import Any, Callable
import cv2 import cv2
import numpy as np import numpy as np
@ -65,7 +65,7 @@ class CameraState:
else 5 else 5
) )
def get_current_frame(self, draw_options={}): def get_current_frame(self, draw_options: dict[str, Any] = {}):
with self.current_frame_lock: with self.current_frame_lock:
frame_copy = np.copy(self._current_frame) frame_copy = np.copy(self._current_frame)
frame_time = self.current_frame_time frame_time = self.current_frame_time