typing: fix some trivial issues

This commit is contained in:
James R. Barlow
2021-08-26 23:46:44 -07:00
parent 4eca0a165b
commit 6f9b948064
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ def rasterize_pdf_page(
@hookspec(firstresult=True)
def filter_ocr_image(page: 'PageContext', image: 'Image') -> 'Image':
def filter_ocr_image(page: 'PageContext', image: Image.Image) -> Image.Image:
"""Called to filter the image before it is sent to OCR.
This is the image that OCR sees, not what the user sees when they view the