From 7a69bd509f283dbc1000884dc547ae18656782bd Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 30 Nov 2024 21:47:38 +0100 Subject: [PATCH] chore: Remove redundant cast --- papis_extract/extraction.py | 4 +++- papis_extract/extractors/pdf.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/papis_extract/extraction.py b/papis_extract/extraction.py index c0b93c3..19c4ccc 100644 --- a/papis_extract/extraction.py +++ b/papis_extract/extraction.py @@ -41,7 +41,9 @@ def start( try: annotations.extend(extractor.run(fname)) except ExtractionError as e: - logger.error(f"File extraction errors for {file}. File may be damaged.\n{e}") + logger.error( + f"File extraction errors for {file}. File may be damaged.\n{e}" + ) if not file_available: return None diff --git a/papis_extract/extractors/pdf.py b/papis_extract/extractors/pdf.py index 906fdec..8caaf5c 100644 --- a/papis_extract/extractors/pdf.py +++ b/papis_extract/extractors/pdf.py @@ -35,7 +35,6 @@ class PdfExtractor: for ( page ) in doc: # pyright: ignore [reportUnknownVariableType] - missing stub - page = cast(mu.Page, page) annot: mu.Annot for annot in page.annots(): quote, note = self._retrieve_annotation_content(page, annot)