fix(types): P1 — remove 2 stale type: ignore[no-untyped-def] in clustering adapters
This commit is contained in:
@@ -342,7 +342,7 @@ def combined_campaign_weight(
|
|||||||
# ─── Adapter for synthetic-fixture tests ────────────────────────────────────
|
# ─── Adapter for synthetic-fixture tests ────────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
def from_synthetic_identity(att, identity_uuid: Optional[str] = None) -> IdentityFeatures: # type: ignore[no-untyped-def]
|
def from_synthetic_identity(att, identity_uuid: Optional[str] = None) -> IdentityFeatures:
|
||||||
"""Build an :class:`IdentityFeatures` from a ``SyntheticAttacker``.
|
"""Build an :class:`IdentityFeatures` from a ``SyntheticAttacker``.
|
||||||
|
|
||||||
Treats one ``SyntheticAttacker`` as one identity — adequate for
|
Treats one ``SyntheticAttacker`` as one identity — adequate for
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ def combined_edge_weight(a: Observation, b: Observation) -> float:
|
|||||||
# ─── Adapter for the synthetic-corpus tests ─────────────────────────────────
|
# ─── Adapter for the synthetic-corpus tests ─────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
def from_synthetic(att) -> Observation: # type: ignore[no-untyped-def]
|
def from_synthetic(att) -> Observation:
|
||||||
"""Build an :class:`Observation` from a ``SyntheticAttacker``.
|
"""Build an :class:`Observation` from a ``SyntheticAttacker``.
|
||||||
|
|
||||||
Lives here so test code doesn't import the factory shape into the
|
Lives here so test code doesn't import the factory shape into the
|
||||||
|
|||||||
Reference in New Issue
Block a user