ruff: more fixes, mainly missing docstrings

This commit is contained in:
James R. Barlow
2023-04-14 02:16:38 -07:00
parent 4924b11b6b
commit 33b70be7d5
10 changed files with 149 additions and 16 deletions
+2 -1
View File
@@ -203,7 +203,7 @@ def create_options(
return options
def ocr( # pylint: disable=unused-argument
def ocr( # noqa: ruff: disable=D417
input_file: PathOrIO,
output_file: PathOrIO,
*,
@@ -242,6 +242,7 @@ def ocr( # pylint: disable=unused-argument
tesseract_thresholding: int = None,
pdf_renderer=None,
tesseract_timeout: float = None,
tesseract_non_ocr_timeout: float = None,
rotate_pages_threshold: float = None,
pdfa_image_compression=None,
user_words: os.PathLike = None,