Commit 5b81981
Add PIL Image import for type hints under TYPE_CHECKING
Resolves the Image.Image forward reference in load_pdf's return type
without adding PIL as a runtime import.
Based on: Layout-Parser#174 (kairi003)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 23b2ec8 commit 5b81981
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
0 commit comments