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

Add py.typed marker to incidate repro-zipfile is typed #12

Open
miikka opened this issue Mar 17, 2024 · 0 comments
Open

Add py.typed marker to incidate repro-zipfile is typed #12

miikka opened this issue Mar 17, 2024 · 0 comments

Comments

@miikka
Copy link

miikka commented Mar 17, 2024

Hi! I'm using a repro-zipfile in a small project and running mypy gives the following warning:

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

I noticed that repro-zipfile actually does have type definitions, but it's missing the py.typed marker file. Could you consider adding it?

There's the small hurdle that PEP-0561 does not really have a way for marking a single-file packages as typed. It says:

This PEP does not support distributing typing information as part of module-only distributions or single-file modules within namespace packages.

The single-file module should be refactored into a package and indicate that the package supports typing as described above.

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