fix: resolve remaining ruff lint and mypy type errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Visser 2026-02-26 22:58:55 +01:00
parent bf04c77aa9
commit ac002131d6
24 changed files with 219 additions and 57 deletions

View file

@ -19,7 +19,7 @@ from app.services.domains.publications.types import PublicationListItem, UnreadP
def _normalized_citation_count(value: object) -> int:
try:
return int(value or 0)
return int(value or 0) # type: ignore[call-overload] # intentionally accepts any object
except (TypeError, ValueError):
return 0