Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: adding type hints #3361

Open
jamesbraza opened this issue Apr 8, 2024 · 2 comments
Open

Request: adding type hints #3361

jamesbraza opened this issue Apr 8, 2024 · 2 comments

Comments

@jamesbraza
Copy link

jamesbraza commented Apr 8, 2024

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 👍

@julian-smith-artifex-com
Copy link
Collaborator

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.

@JorjMcKie
Copy link
Collaborator

Duplicate of #2883.

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

No branches or pull requests

3 participants