Skip to content

Commit 8df3d1c

Browse files
Please add py.typed so mypy will use and respect type annotations in mistune (#348)
feat: add py.typed for mypy
1 parent 4222ee1 commit 8df3d1c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
setup(
66
name="mistune",
7+
package_data={"mistune": ["py.typed", ]}
78
)

Diff for: src/mistune/py.typed

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# when type checking dependents, tell type checkers, e.g. mypy, to use this package's types
2+
# without this file, mypy will write a warning and ignore type annotations from mistune.

0 commit comments

Comments
 (0)