Skip to content

Commit

Permalink
Handlers.py Fixup leftover typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Nov 10, 2024
1 parent 71069a2 commit 7bb70a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion camelot/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
from pathlib import Path
from typing import Any

from pdfminer.layout import LTChar
from pdfminer.layout import LTImage
from pdfminer.layout import LTTextLineHorizontal
from pdfminer.layout import LTTextLineVertical
from pypdf import PdfReader
from pypdf import PdfWriter
from pypdf._utils import StrByteType
Expand Down Expand Up @@ -119,7 +123,14 @@ def _get_pages(self, pages):

def _save_page(
self, filepath: StrByteType | Path, page: int, temp: str, **layout_kwargs
): # -> int, int, tuple[list[LTImage], list[LTTextLineHorizontal], list[LTTextLineVertical]]:
) -> tuple[
Any,
tuple[float, float],
list[LTImage],
list[LTChar],
list[LTTextLineHorizontal],
list[LTTextLineVertical],
]:
"""Saves specified page from PDF into a temporary directory.
Parameters
Expand Down

0 comments on commit 7bb70a7

Please sign in to comment.