denselinkage.core.models.MatchDecision

class denselinkage.core.models.MatchDecision(is_match: bool, confidence: float | None = None, rationale: str | None = None)[source]

Bases: object

A successful decision — is_match is always a real bool.

Failures are NOT represented here. A matcher that cannot decide a pair yields the sibling MatchError (see Matcher.match and LinkageResult.errors), keeping this type a pure decision. confidence / rationale are matcher-dependent — both None for matchers that do not produce them (e.g. ThresholdMatcher).