refactor: confidence should always have a value

This commit is contained in:
2026-04-02 10:33:12 +02:00
parent 66682e8b45
commit d18d8afb37
6 changed files with 37 additions and 40 deletions
+1 -3
View File
@@ -62,6 +62,4 @@ class LyricResult:
lyrics: Optional[LRCData] = None
source: Optional[str] = None # Which fetcher produced this result
ttl: Optional[int] = None # Hint for cache TTL (seconds)
confidence: Optional[float] = (
None # 0-100 selection confidence (None = exact/trusted)
)
confidence: float = 100.0 # 0-100 selection confidence (100 = trusted/exact)