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 type support via py.typed marker file for PEP561 #147

Closed
jogo-openai opened this issue Jun 12, 2024 · 1 comment
Closed

Add type support via py.typed marker file for PEP561 #147

jogo-openai opened this issue Jun 12, 2024 · 1 comment

Comments

@jogo-openai
Copy link

jogo-openai commented Jun 12, 2024

As per PEP561 mypy requires a py.typed file to consider a library typed. https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages.

Adding this file will allow folks to take advantage of the typing already present in this module.

Otherwise mypy reports:

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

jogo-openai added a commit to jogo-openai/python-multipart that referenced this issue Jun 12, 2024
@Kludex
Copy link
Owner

Kludex commented Jun 12, 2024

It's a warning that makes sense, since it's untyped...

@Kludex Kludex closed this as completed Jun 12, 2024
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

Successfully merging a pull request may close this issue.

2 participants