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

Please add py.typed so mypy will use and respect type annotations in mistune #348

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Please add py.typed so mypy will use and respect type annotations in mistune #348

merged 2 commits into from
Jun 9, 2023

Conversation

matthewdeanmartin
Copy link
Contributor

Mypy will complain that it can't check types for mistune despite someone taking the time to annotate mistune because it lacks a py.typed file to signal that it is safe to use the type annotations in mistune.

No python touched. I'm assuming you are using python -m build as show in in Makefile.l

I tested with

clear && rm -rf dist && python -m build && python -m zipfile --list dist/*.whl

and got

Successfully built mistune-3.0.0.tar.gz and mistune-3.0.0-py3-none-any.whl
File Name Modified Size

mistune/markdown.py 2023-06-08 16:33:38 3319
mistune/py.typed 2023-06-08 16:33:38 181
mistune/toc.py 2023-06-08 16:33:38 3136

No library code was touched & unless someone runs mypy, this has no impact on how the library works.

@lepture lepture merged commit 8df3d1c into lepture:master Jun 9, 2023
miketheman added a commit to miketheman/warehouse that referenced this pull request Oct 3, 2023
Types added in lepture/mistune#348

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
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 this pull request may close these issues.

2 participants