From 85e31d0a1906f6eb51234b132cadd140bd6c5f64 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 25 Sep 2023 01:04:01 -0700 Subject: [PATCH] Tidy imports and line length --- src/ocrmypdf/api.py | 4 ++-- src/ocrmypdf/optimize.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ocrmypdf/api.py b/src/ocrmypdf/api.py index b46ce847..16caa43e 100644 --- a/src/ocrmypdf/api.py +++ b/src/ocrmypdf/api.py @@ -18,7 +18,7 @@ from warnings import warn import pluggy -from ocrmypdf._logging import PageNumberFilter, RichTqdmProgressAdapter +from ocrmypdf._logging import PageNumberFilter from ocrmypdf._plugin_manager import get_plugin_manager from ocrmypdf._sync import run_pipeline from ocrmypdf._validation import check_options @@ -144,7 +144,7 @@ def create_options( **kwargs: Keyword arguments. Returns: - argparse.Namespace: An argparse Namespace object containing the parsed arguments. + argparse.Namespace: A Namespace object containing the parsed arguments. Raises: TypeError: If the type of a keyword argument is not supported. diff --git a/src/ocrmypdf/optimize.py b/src/ocrmypdf/optimize.py index 6d42f7b8..b54a5b56 100644 --- a/src/ocrmypdf/optimize.py +++ b/src/ocrmypdf/optimize.py @@ -239,7 +239,7 @@ def _find_image_xrefs_container( pageno_for_xref: dict[Xref, int], depth: int = 0, ): - """Find all image XRefs in a page or Form XObject and add to the include/exclude sets.""" + """Find all image XRefs or Form XObject and add to the include/exclude sets.""" if depth > 10: log.warning("Recursion depth exceeded in _find_image_xrefs_page") return