Skip to content

Commit

Permalink
Please add py.typed so mypy will use and respect type annotations in …
Browse files Browse the repository at this point in the history
…mistune (#348)

feat: add py.typed for mypy
  • Loading branch information
matthewdeanmartin authored Jun 9, 2023
1 parent 4222ee1 commit 8df3d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

setup(
name="mistune",
package_data={"mistune": ["py.typed", ]}
)
2 changes: 2 additions & 0 deletions src/mistune/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# when type checking dependents, tell type checkers, e.g. mypy, to use this package's types
# without this file, mypy will write a warning and ignore type annotations from mistune.

0 comments on commit 8df3d1c

Please sign in to comment.