Skip to content

Add a py.typed marker file for PEP 561 compliance #231

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
Jan 24, 2021

Conversation

pgjones
Copy link
Contributor

@pgjones pgjones commented Jan 23, 2021

This allows the new type hints for the ASGI scopes and messages to be
used. Without this mypy ignores anything from asgiref.

@@ -1,2 +1,3 @@
include LICENSE
include asgiref/py.typed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need setuptools package data too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in include_package_data = true?

This allows the new type hints for the ASGI scopes and messages to be
used. Without this mypy ignores anything from asgiref.
@andrewgodwin
Copy link
Member

See if we need the setuptools package data, and then I'll get this merged.

@graingert
Copy link
Contributor

@andrewgodwin andrewgodwin merged commit 96cbb8c into django:master Jan 24, 2021
@andrewgodwin
Copy link
Member

So it is, my bad! Merged, and thanks both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants