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)