From 63567c2ae45086989aef5b33c969464c0de2442e Mon Sep 17 00:00:00 2001 From: Trevor Bekolay Date: Thu, 19 Nov 2020 04:18:25 -0500 Subject: [PATCH] Add py.typed file (#1970) --- changelogs/1970.misc.rst | 1 + sanic/py.typed | 0 setup.py | 1 + 3 files changed, 2 insertions(+) create mode 100644 changelogs/1970.misc.rst create mode 100644 sanic/py.typed diff --git a/changelogs/1970.misc.rst b/changelogs/1970.misc.rst new file mode 100644 index 00000000..725ecd79 --- /dev/null +++ b/changelogs/1970.misc.rst @@ -0,0 +1 @@ +Adds py.typed file to expose type information to other packages. diff --git a/sanic/py.typed b/sanic/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index ba97188c..f4677215 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ setup_kwargs = { ), "long_description": long_description, "packages": ["sanic"], + "package_data": {"sanic": ["py.typed"]}, "platforms": "any", "python_requires": ">=3.6", "classifiers": [