Skip to content

Enable mypy to discover type hints as specified in PEP 561 #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions gql/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP 561. The gql package uses inline types.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down