Skip to content

Commit 777db05

Browse files
committed
feat: add py.typed for mypy
1 parent 8df3d1c commit 777db05

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ version = {attr = "mistune.__version__"}
4141
[tool.setuptools.packages.find]
4242
where = ["src"]
4343

44+
[tool.setuptools.package-data]
45+
mistune = ["py.typed"]
46+
4447
[tool.pytest.ini_options]
4548
pythonpath = ["src", "."]
4649
testpaths = ["tests"]

setup.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
from setuptools import setup
22

3-
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
4-
5-
setup(
6-
name="mistune",
7-
package_data={"mistune": ["py.typed", ]}
8-
)
3+
setup(name="mistune")

0 commit comments

Comments
 (0)