Tidy imports and line length

This commit is contained in:
James R. Barlow
2023-09-25 01:04:01 -07:00
parent ea36aedb5f
commit 85e31d0a19
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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