Description of the bug
Upgrading from PyMuPDF 1.26.7 to 1.27.2 (since #4862 and #4869 added a py.typed), the find_tables monkeypatch is not working with mypy: https://github.com/pymupdf/PyMuPDF/blob/1.27.2/src/__init__.py#L25574-L25575
How to reproduce the bug
Upgrading from PyMuPDF 1.26.7 to 1.27.2, with the below script using Python 3.13:
import pymupdf
page: pymupdf.Page
page.find_tables()
I now see this attr-defined error with mypy==1.19.1:
a.py:4:1: error: "Page" has no
attribute "find_tables" [attr-defined]
page.find_tables()
^~~~~~~~~~~~~~~~
PyMuPDF version
1.27.2
Operating system
MacOS
Python version
3.13
Description of the bug
Upgrading from PyMuPDF 1.26.7 to 1.27.2 (since #4862 and #4869 added a
py.typed), thefind_tablesmonkeypatch is not working withmypy: https://github.com/pymupdf/PyMuPDF/blob/1.27.2/src/__init__.py#L25574-L25575How to reproduce the bug
Upgrading from PyMuPDF 1.26.7 to 1.27.2, with the below script using Python 3.13:
I now see this
attr-definederror withmypy==1.19.1:PyMuPDF version
1.27.2
Operating system
MacOS
Python version
3.13