Type-clean the anomaly check tests 🟪

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-21 10:18:09 +00:00
parent 68ffb0c47c
commit 6f83418c4c

View file

@ -1,16 +1,18 @@
import dataclasses
from typing import Optional
import pytest
# The checks are registry-driven: production reaches them through `_REGISTRY`,
# never by name, so the underscore marks "not a direct call site" rather than
# "untestable". Naming them here is the only way to exercise one check in
# isolation, hence the private-usage waivers.
from scripts.audit.anomalies import (
_REGISTRY,
_REGISTRY, # pyright: ignore[reportPrivateUsage]
PropertyAudit,
Severity,
_already_meets_goal_with_works,
_effective_lodged_divergence,
_implausible_lodged_score,
_plan_stops_short_of_goal,
_already_meets_goal_with_works, # pyright: ignore[reportPrivateUsage]
_effective_lodged_divergence, # pyright: ignore[reportPrivateUsage]
_implausible_lodged_score, # pyright: ignore[reportPrivateUsage]
_plan_stops_short_of_goal, # pyright: ignore[reportPrivateUsage]
)