PyMuPDF
PyMuPDF copied to clipboard
Request: adding type hints
Is your feature request related to a problem? Please describe.
Running mypy==1.9.0
with PyMuPDF==1.24.1
:
foo.py:12:1: error: Skipping analyzing "fitz": module is installed, but missing library stubs or py.typed marker [import-untyped]
import fitz
^
Describe the solution you'd like
It would be nice to:
- Add type hints
- Add
py.typed
metadata
Describe alternatives you've considered
N/a
Additional context
Thank you in advance 👍
We are looking at possible architectural changes that will allow better type hints in future. But it's quite an involved process so there are no timescales at the moment.
Duplicate of #2883.