camelot-dev / camelot

A Python library to extract tabular data from PDFs
https://camelot-py.readthedocs.io
MIT License
2.76k stars 446 forks source link

[MRG] Add return type to TableList __getitem__ method #477

Open 16dprice opened 6 months ago

16dprice commented 6 months ago

This PR simply adds a return type to the TableList __getitem__ method so that when you write code like:

tables = camelot.read_pdf(file_path, pages=pages)
table1 = tables[0]

you get automatic type inference on the table1 variable.

MartinThoma commented 4 months ago

Hey!

As camelot is dead, we try to build a maintained fork at pypdf_table_extraction.

Do you want to open the PR against that branch so that we can merge your improvement?