mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Type-clean the anomaly check tests 🟪
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
68ffb0c47c
commit
6f83418c4c
1 changed files with 9 additions and 7 deletions
|
|
@ -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]
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue