-
-
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
Better callable: Callable[[Arg('x', int), VarArg(str)], int]
now a thing you can do
#2607
Merged
Merged
Changes from 8 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
249d70f
Implement Callable[[Arg('name', Type)], ret] syntax
sixolet 7ecdcc1
General cleanup
sixolet 066bd5e
Change tests back to match old behavior
sixolet 213944b
lots of lint
sixolet 0e19070
Oh god I am tired of writing parsers
sixolet 3f2f617
Tighten fastparse a little
sixolet 0b69630
make all tests pass now
sixolet f4ccf92
go back to master version of typeshed I guess
sixolet 967bb5a
Meged master, but tests fail again now.
sixolet bb5134e
Tests all pass again after merge
sixolet d4a83e1
Merged master again
sixolet 54a5da9
Big refactor. Wait until semanal to get arg kinds, switch order again…
sixolet e79c527
Change back to TypeList
sixolet 52ffe5c
Cleanups. Preparing to split into two diffs maybe?
sixolet 06416f7
update typeshed to master version
sixolet 398fbad
more cleanups
sixolet 2c9ce02
should not have changed these test files
sixolet 51c6f56
Semanal needs to be a SyntheticTypeVisitor
sixolet 5e679a3
Annot
sixolet 0926fe9
Oops
sixolet 288a8be
Add testing for exprtotype Arg constructors in wierd places
sixolet 6e67ab2
Remove some ill-modified modifications to tests
sixolet 97a859b
Merge master, no longer depend on other PR
sixolet 1c7d4c6
Jukka comments
sixolet f153850
Synthetic types don't serialize
sixolet be954f5
Remove unused instance var
sixolet 07ae917
Merge master
sixolet 1b97362
Revert "Remove unused instance var"
sixolet 552f49e
Accessing TypeList types directly is not required
sixolet f2e3663
Undo changes to this file they were not required
sixolet 27e2a9d
lint
sixolet 793a663
Merge master again
sixolet 3d212b3
Merge master
sixolet 0780149
Disallow CallableArgument in exprtotype outside a TypeList
sixolet 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
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.
Add comment about why it makes sense to just return
typ
here and elsewhere in this file.