-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Allow fancy self-types #7860
Merged
ilevkivskyi
merged 25 commits into
python:master
from
ilevkivskyi:fix-bind-self-direction
Nov 5, 2019
Merged
Allow fancy self-types #7860
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
07de26b
Start work
ilevkivskyi 56c5b34
Some polish
ilevkivskyi 5870ce9
Add some overloads
ilevkivskyi 082f4f4
Some fixes
ilevkivskyi 869e15e
Add some mixin fun
ilevkivskyi a6060da
Fix self-check
ilevkivskyi 6dc8126
Add one more TODO
ilevkivskyi 48bc5e3
Add two more tricky tests
ilevkivskyi f287273
Fix a corner case for Type[...] vs metaclass; add tests
ilevkivskyi e696834
Update tests
ilevkivskyi 72b9c8a
Update docs/source/more_types.rst
ilevkivskyi c913a7f
Update docs/source/more_types.rst
ilevkivskyi 3cb098c
Update docs/source/more_types.rst
ilevkivskyi 52158e7
Update mypy/checker.py
ilevkivskyi 247ce64
Merge branch 'fix-bind-self-direction' of https://github.com/ilevkivs…
ilevkivskyi 0127c00
Address CR
ilevkivskyi 56f42bd
Prettify one import
ilevkivskyi ea6376d
Fix typo
ilevkivskyi eb3b2b7
Add a comment
ilevkivskyi 9a3454e
Simplify one test; use better example in docs
ilevkivskyi ab304e5
More doc tweaks
ilevkivskyi 64c6727
Some docstring, comments and cleanups
ilevkivskyi 5e5b133
Two more tests for overloaded __init__
ilevkivskyi ed58024
Fix self-check
ilevkivskyi b33059e
Address CR
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth documenting the use in
__init__
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed it is mostly useful for typeshed stubs, but didn't find this patter in user code, I will add a short sentence at the end, where I discuss overloads.