Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 7bb70a7

Browse files
committed
Handlers.py Fixup leftover typing
1 parent 71069a2 commit 7bb70a7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

camelot/handlers.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
from pathlib import Path
88
from typing import Any
99

10+
from pdfminer.layout import LTChar
11+
from pdfminer.layout import LTImage
12+
from pdfminer.layout import LTTextLineHorizontal
13+
from pdfminer.layout import LTTextLineVertical
1014
from pypdf import PdfReader
1115
from pypdf import PdfWriter
1216
from pypdf._utils import StrByteType
@@ -119,7 +123,14 @@ def _get_pages(self, pages):
119123

120124
def _save_page(
121125
self, filepath: StrByteType | Path, page: int, temp: str, **layout_kwargs
122-
): # -> int, int, tuple[list[LTImage], list[LTTextLineHorizontal], list[LTTextLineVertical]]:
126+
) -> tuple[
127+
Any,
128+
tuple[float, float],
129+
list[LTImage],
130+
list[LTChar],
131+
list[LTTextLineHorizontal],
132+
list[LTTextLineVertical],
133+
]:
123134
"""Saves specified page from PDF into a temporary directory.
124135
125136
Parameters

0 commit comments

Comments
 (0)