-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ty] Generic types aliases (implicit and PEP 613) #21553
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
+653
−141
Merged
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
eb7c911
[ty] Generic implicit types aliases
sharkdp c770b2a
Use assignment definition as typevar binding context
sharkdp 4fb0909
Handle attribute expressions as well
sharkdp 24d3693
Handle PEP 613 aliases as well
sharkdp 646c462
Patch panics for stringified annotations for now
sharkdp 225edf1
Rename
sharkdp d6981e8
Fix value-position specializations
sharkdp 0968622
Fix problem with np.array related to type[T]
sharkdp a3ee7e8
Stringified annotations
sharkdp 272cb4b
Cleanup
sharkdp a490411
Adapt tests
sharkdp 7b6ef8a
Add tests for default specialization
sharkdp 801c52b
Rename methods
sharkdp e13e49c
Fix tests after rebase
sharkdp f19f005
Workaround for explicitly specialized generic recursive implicit type…
sharkdp bb4b8e3
Get rid of false positives for Callables
sharkdp ae781f7
Remove type[T] Todo type
sharkdp 14a7534
formulation
sharkdp 495dfe3
Fix tests after rebase
sharkdp e9a1d14
Add tuple unpacking test case
sharkdp b8ae943
Add test case for totally stringified type aliases (which still revea…
sharkdp 9a7231d
Add back TODO comment
sharkdp 267a51e
Another TODO comment
sharkdp 5384ea4
Remove questionable TODO comments
sharkdp db39fa1
Return CallableType from CallableType::unknown
sharkdp 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
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.
We now understand the
_FutureLiketype alias.