chore: Ignore type errors for Any usage in papis

This commit is contained in:
Marty Oehme 2025-06-11 14:33:12 +02:00
parent 2c77e46549
commit bdcdfd207c
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -28,7 +28,7 @@ class BBTFormatter(papis.format.Formatter):
fmt: str, fmt: str,
doc: papis.document.DocumentLike, doc: papis.document.DocumentLike,
doc_key: str = "", doc_key: str = "",
additional: dict[str, Any] | None = None, additional: dict[str, Any] | None = None, # pyright: ignore[reportExplicitAny]
default: str | None = None, default: str | None = None,
) -> str: ) -> str:
if not fmt.startswith("bbt:"): if not fmt.startswith("bbt:"):
@ -47,7 +47,7 @@ class BBTFormatter(papis.format.Formatter):
fmt: str, fmt: str,
doc: papis.document.DocumentLike, doc: papis.document.DocumentLike,
doc_key: str, doc_key: str,
additional: dict[str, Any] | None = None, additional: dict[str, Any] | None = None, # pyright: ignore[reportExplicitAny]
default: str | None = None, default: str | None = None,
) -> str: ) -> str:
_saved = papis.format.FORMATTER _saved = papis.format.FORMATTER
@ -62,7 +62,7 @@ class BBTFormatter(papis.format.Formatter):
author_unfmt = ( author_unfmt = (
doc["author_list"][0]["family"] doc["author_list"][0]["family"]
if "author_list" in doc if "author_list" in doc
else doc["author"].split(maxsplit=1)[0] else str(doc["author"]).split(maxsplit=1)[0] # pyright: ignore[reportAny]
if "author" in doc if "author" in doc
else "UNKNOWN" else "UNKNOWN"
) )