-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Basic ParamSpec Concatenate and literal support #11847
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
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
ef32680
Add ParamSpec literals
A5rocks 816f3cd
Improve ParamSpec and Parameters checking
A5rocks d9b352f
Get basic Concatenate features working
A5rocks 58e6dbe
Fix "cache" bug
A5rocks 51ba4ea
Check Concatenate prefixes
A5rocks 24432ee
Polish work
A5rocks c507152
Merge branch 'master' into paramspec-literals
A5rocks d202d1e
Tests for literals
A5rocks 9ed9830
Tests for Concatenate
A5rocks 3ffc343
Appease CI
A5rocks ae8ac73
Forgot to comment out the directives...
A5rocks 9c849cc
Improve literal TODOs
A5rocks d9dcc76
Add more tests
A5rocks 0e2b207
Allow TypeVars in Concatenate
A5rocks bd445e5
Fix a couple of dumb oversights
A5rocks 604c304
Allow Callables along with Parameters
A5rocks f8004ec
Fix tests
A5rocks 9e75481
Misc changes
A5rocks 7b89f06
Solve with self types
A5rocks f24cf4f
Add fallback return to meeting paramspec literals
A5rocks 472b20c
Type application of ParamSpec literals
A5rocks 14ecfb9
Ellipsis paramspec literals
A5rocks 5e0ae49
Merge branch 'master' into paramspec-literals
A5rocks 45c8057
Appease flake8
A5rocks 10966ea
Merge branch 'master' into paramspec-literals
hauntsaninja c46feec
Minor code cleanup
A5rocks 6a9cd71
Error notes and better subtyping for paramspec literals
A5rocks afc1a57
Appease CI
A5rocks 41e38b2
Merge remote-tracking branch 'upstream/master' into paramspec-literals
A5rocks 86e23c2
Fix something I assumed incorrectly
A5rocks 3f4cf5c
Merge branch 'master' into paramspec-literals
A5rocks 61b00cd
Revert "Minor code cleanup"
A5rocks 9c2cefd
Merge branch 'master' into paramspec-literals
A5rocks a44937b
Fixed raised bugs
A5rocks bbabbf1
Fix CI errors
A5rocks ddfd34a
Squash some more bugs
A5rocks 2d54ac4
Concatenate flag
A5rocks bba91e5
Prepare for GitHub Actions
A5rocks e0a7663
Merge branch 'master' into paramspec-literals
A5rocks 0363803
Bug report with nested decorators and Concatenate
A5rocks 278b8c4
Switch over to using Parameters instead of CallableType
A5rocks c2b7628
Add variance to paramspecs
A5rocks 0b1fdfb
Apply suggestions from code review
A5rocks 0fff609
Update tests
A5rocks 4475515
Some of the PR feedback
A5rocks 0091762
Merge branch 'master' into paramspec-literals
A5rocks 81994f1
Prepare for GitHub actions
A5rocks 1ff96c1
Merge branch 'master' into paramspec-literals
A5rocks c79918e
Fix tests to latest output
A5rocks 9b1fc75
Copy pyright's representation of Concatenate
A5rocks 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
I think it is correct, we need any instance of the return type to be compatible iwth both, which seems to be the intersection of their arguments e.g.
meet_types
.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.
Also, if its possible to test these independently (I assume we can add tests in the semanal section that simply test this, if not thats a problem in itself) the "Add all the visitors" section of the diff should probably be migrated to a separate PR with its own semanal tests.