Increase mypy coverage and fixes (#22632)

This commit is contained in:
Nicolas Mowen
2026-03-25 09:28:48 -06:00
committed by GitHub
parent 04a2f42d11
commit 80c4ce2b5d
11 changed files with 140 additions and 87 deletions
+6 -6
View File
@@ -13,10 +13,10 @@ class MotionDetector(ABC):
frame_shape: Tuple[int, int, int],
config: MotionConfig,
fps: int,
improve_contrast,
threshold,
contour_area,
):
improve_contrast: bool,
threshold: int,
contour_area: int | None,
) -> None:
pass
@abstractmethod
@@ -25,7 +25,7 @@ class MotionDetector(ABC):
pass
@abstractmethod
def is_calibrating(self):
def is_calibrating(self) -> bool:
"""Return if motion is recalibrating."""
pass
@@ -35,6 +35,6 @@ class MotionDetector(ABC):
pass
@abstractmethod
def stop(self):
def stop(self) -> None:
"""Stop any ongoing work and processes."""
pass