tests: add type annotations to CLI, protocol, and smartcam tests (#1687)

Add type annotations (`-> None` return types and parameter types) to
test files in the `tests/cli/`, `tests/protocols/`, and
`tests/smartcam/` directories. This enables mypy to check test function
bodies, catching type errors that were previously hidden.
This commit is contained in:
ZeliardM
2026-07-05 12:46:01 -04:00
committed by GitHub
parent da2588291d
commit 1a84242a05
11 changed files with 255 additions and 138 deletions

View File

@@ -25,8 +25,8 @@ class Detection(NamedTuple):
def parametrize_detection(
*,
model_filter=None,
protocol_filter=None,
fixture_name="dev",
protocol_filter: set[str] | None = None,
fixture_name: str = "dev",
extra_params_names: list[str],
extra_params_values: list[Detection],
):
@@ -139,7 +139,7 @@ params_detections = parametrize_detection(
@params_detections
async def test_detections(
dev: Device, module: ModuleName[DetectionModule], feature_name: str
):
) -> None:
detection = dev.modules.get(module)
assert detection