From 4ac34553c61e6ee21f915106162c13a2400768d5 Mon Sep 17 00:00:00 2001 From: Hanusz Leszek Date: Mon, 6 Dec 2021 21:03:23 +0100 Subject: [PATCH] Add py.typed file --- MANIFEST.in | 2 ++ gql/py.typed | 1 + setup.py | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 gql/py.typed diff --git a/MANIFEST.in b/MANIFEST.in index 4d7eaef4..73d59a18 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -13,6 +13,8 @@ include tox.ini include scripts/gql-cli +include gql/py.typed + recursive-include tests *.py *.graphql *.cnf *.yaml *.pem recursive-include docs *.txt *.rst conf.py Makefile make.bat *.jpg *.png *.gif recursive-include docs/code_examples *.py diff --git a/gql/py.typed b/gql/py.typed new file mode 100644 index 00000000..82879f7d --- /dev/null +++ b/gql/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. The gql package uses inline types. diff --git a/setup.py b/setup.py index 776be66e..266fbb0c 100644 --- a/setup.py +++ b/setup.py @@ -85,6 +85,8 @@ ], keywords="api graphql protocol rest relay gql client", packages=find_packages(include=["gql*"]), + # PEP-561: https://www.python.org/dev/peps/pep-0561/ + package_data={"gql": ["py.typed"]}, install_requires=install_requires, tests_require=install_all_requires + tests_requires, extras_require={