Skip to content

Commit

Permalink
do_get_pdfinfo: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Oct 28, 2024
1 parent 6f75532 commit 5e478a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ocrmypdf/_pipelines/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
samefile,
)
from ocrmypdf.pdfa import file_claims_pdfa
from ocrmypdf.pdfinfo import PdfInfo

log = logging.getLogger(__name__)
tls = threading.local()
Expand Down Expand Up @@ -316,9 +317,11 @@ def setup_pipeline(
return executor


def do_get_pdfinfo(pdf, executor, options):
def do_get_pdfinfo(
pdf_path: Path, executor: Executor, options: argparse.Namespace
) -> PdfInfo:
return get_pdfinfo(
pdf,
pdf_path,
executor=executor,
detailed_analysis=options.redo_ocr,
progbar=options.progress_bar,
Expand Down

0 comments on commit 5e478a7

Please sign in to comment.