Skip to content

Comments

Fix: add one import for type hints#174

Open
kairi003 wants to merge 1 commit intoLayout-Parser:mainfrom
kairi003:patch1
Open

Fix: add one import for type hints#174
kairi003 wants to merge 1 commit intoLayout-Parser:mainfrom
kairi003:patch1

Conversation

@kairi003
Copy link

At layoutparser.io, the type hint Image.Image is used, but it is not imported.

IgorTavcar added a commit to IgorTavcar/layout-parser that referenced this pull request Feb 21, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant