Skip to content
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

Add empty stubs for Django __init__ files #321

Closed
wants to merge 1 commit into from

Conversation

dirn
Copy link
Contributor

@dirn dirn commented Oct 12, 2020

While Pyre seems to handle the absence of __init__.pyi well, there can
be problems with other type checkers that use its Django stubs. Adding
these stub files makes the others discoverable, much like adding empty
__init__.py files to Python packages.

@dirn dirn changed the title add init stubs Add empty stubs for Django __init__ files Oct 12, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gbleaney has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

While Pyre seems to handle the absence of `__init__.pyi` well, there can
be problems with other type checkers that use its Django stubs. Adding
these stub files makes the others discoverable, much like adding empty
`__init__.py` files to Python packages.
@facebook-github-bot
Copy link
Contributor

@dirn has updated the pull request. You must reimport the pull request before landing.

@dirn
Copy link
Contributor Author

dirn commented Nov 6, 2020

@gbleaney I rebased this on top of the latest version of master. Let me know if there are any changes that need to be made based on your Phabricator diff.

dirn added a commit to PyGotham/awards-2020 that referenced this pull request Nov 6, 2020
This is a work-in-progress attempt at switching over to mypy as part of
 #85. At the moment everything seems to be working except for the some
changes to pyre's stubs that are addressed in facebook/pyre-check#321.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gbleaney has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@gbleaney
Copy link
Contributor

gbleaney commented Nov 6, 2020

Sorry for losing track of this @dirn! I've re-imported and will try to land today

@facebook-github-bot
Copy link
Contributor

@gbleaney merged this pull request in 7849a3d.

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

Successfully merging this pull request may close these issues.

3 participants