Skip to content

use Page object in a method's signature throws #770

Answered by samkit-jain
maayansharon10 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @maayansharon10 Appreciate your interest in the library. The reason is because the Page class is not exposed. However, if you want to still import it and use as a type hint, you can use pdfplumber.page.Page instead of pdfplumber.Page. Notice the .page. import

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maayansharon10
Comment options

Answer selected by maayansharon10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants