chore: Remove redundant cast
This commit is contained in:
parent
ddaa75f44b
commit
7a69bd509f
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue