Skip to content

Pulled in PyMuPDF typing fix#1320

Merged
jamesbraza merged 1 commit intomainfrom
fixing-pymupdf-typing
Mar 20, 2026
Merged

Pulled in PyMuPDF typing fix#1320
jamesbraza merged 1 commit intomainfrom
fixing-pymupdf-typing

Conversation

@jamesbraza
Copy link
Copy Markdown
Collaborator

PyMuPDF fixed the typing on Page.find_tables in pymupdf/PyMuPDF#4932

@jamesbraza jamesbraza self-assigned this Mar 20, 2026
@jamesbraza jamesbraza added the bug Something isn't working label Mar 20, 2026
Copilot AI review requested due to automatic review settings March 20, 2026 17:21
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 20, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PaperQA PyMuPDF integration to rely on PyMuPDF’s corrected typing for Page.find_tables, aligning the code with the upstream fix referenced in PyMuPDF issue #4932.

Changes:

  • Bump PyMuPDF (dev extra) lower bound to >=1.27.2.2 to pick up the Page.find_tables typing fix.
  • Switch table extraction to call page.find_tables() directly (instead of pymupdf.table.find_tables(page)).
  • Refresh uv.lock to reflect the new PyMuPDF version and dev-extra constraint.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
uv.lock Updates resolved PyMuPDF version to 1.27.2.2 and records the dev-extra constraint for the typing fix.
packages/paper-qa-pymupdf/src/paperqa_pymupdf/reader.py Uses Page.find_tables() for table detection, matching the API whose typing was fixed upstream.
packages/paper-qa-pymupdf/pyproject.toml Adds a dev extra constraint PyMuPDF>=1.27.2.2 to ensure developers/tests get the corrected typing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamesbraza jamesbraza merged commit d2c3c69 into main Mar 20, 2026
10 of 11 checks passed
@jamesbraza jamesbraza deleted the fixing-pymupdf-typing branch March 20, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants