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

Mypy: Missing py.typed marker #47

Open
jlost opened this issue May 10, 2024 · 0 comments
Open

Mypy: Missing py.typed marker #47

jlost opened this issue May 10, 2024 · 0 comments

Comments

@jlost
Copy link

jlost commented May 10, 2024

Mypy does not recognize munkres as a typed module due to lack of py.typed marker (empty file named py.typed at package root).

Error:

Skipping analyzing "munkres": module is installed, but missing library stubs or py.typed marker Mypyimport-untyped
See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports Mypynote

However, munkres is distributed as a single-file top-level Python module (munkres.py directly in site-packages).

This PR has discussion of this (apparently unsupported) use case: python/typing#1333

The suggestion currently seems to be to start using a directory and add the marker.

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

No branches or pull requests

1 participant