fix: resolve remaining ruff lint and mypy type errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bf04c77aa9
commit
ac002131d6
24 changed files with 219 additions and 57 deletions
|
|
@ -367,10 +367,7 @@ def _publication_identity(pub: PublicationCandidate) -> str:
|
|||
|
||||
|
||||
def _is_fuzzy_dup(tokens: set[str], seen: list[set[str]]) -> bool:
|
||||
for existing in seen:
|
||||
if _jaccard(tokens, existing) >= _CANONICAL_DEDUP_THRESHOLD:
|
||||
return True
|
||||
return False
|
||||
return any(_jaccard(tokens, existing) >= _CANONICAL_DEDUP_THRESHOLD for existing in seen)
|
||||
|
||||
|
||||
def _build_body_excerpt(body: str, *, max_chars: int = 220) -> str | None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue