From 8df3d1c8c0fdf669ce60e0ebaa221a44698968ef Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Fri, 9 Jun 2023 00:36:51 -0400 Subject: [PATCH] Please add py.typed so mypy will use and respect type annotations in mistune (#348) feat: add py.typed for mypy --- setup.py | 1 + src/mistune/py.typed | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 src/mistune/py.typed diff --git a/setup.py b/setup.py index 8d177d3..61e5973 100644 --- a/setup.py +++ b/setup.py @@ -4,4 +4,5 @@ setup( name="mistune", + package_data={"mistune": ["py.typed", ]} ) diff --git a/src/mistune/py.typed b/src/mistune/py.typed new file mode 100644 index 0000000..fd3375c --- /dev/null +++ b/src/mistune/py.typed @@ -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.