Skip to content

Package is missing py.typed file required for type checking #4857

Closed

Description

@septatrix

Description of the bug

While the package itself has type annotations for most places, type checkers like mypy ignore these as the package does not include the py.typed marker file. More information can be found in the respective PEP 561

How to reproduce the bug

Run mypy somefileimportingpymupdf.py

Output:

main.py:7: error: Skipping analyzing "pymupdf": module is installed, but missing library stubs or py.typed marker  [import-untyped]

PyMuPDF version

1.26.7

Operating system

Linux

Python version

3.14

Activity

  1. julian-smith-artifex-com commented on Feb 11, 2026

    @julian-smith-artifex-com
    Collaborator

    Fixed in PyMuPDF-1.27.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions