-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing #23702
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
+381
−75
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
219b4ee
Add ParamSpec and Concatenate
Fidget-Spinner a1c0d0a
support ParamSpec in generics
Fidget-Spinner 7b3beab
Add typing tests, disallow Concatenate in other types
Fidget-Spinner 5dd3b44
Add news
Fidget-Spinner 59c0b20
Address some of Guido's review comments
Fidget-Spinner 4c381b3
remove extraneous empty lines
Fidget-Spinner b36b62d
Support ParamSpec in __parameters__ of typing and builtin GenericAlias
Fidget-Spinner d09d088
add tests for user defined generics
Fidget-Spinner 0a19f34
Merge remote-tracking branch 'upstream/master' into pep612
Fidget-Spinner 9727e2a
cast list to tuple done, loosened type checks for Generic
Fidget-Spinner cc7fc1c
loosen generics, allow typevar-like subst, flatten out args if Callable
Fidget-Spinner 3e67f23
fix whitespace issue, cast list to tuple for types.GenericAlias
Fidget-Spinner d9baa1a
convert list to tuples if substituting paramspecs in types.GenericAlias
Fidget-Spinner c4155b6
done! flattened __args__ in substitutions for collections.abc.Callable
Fidget-Spinner 2dbf861
fix repr problems, add repr tests
Fidget-Spinner 87c2d19
Add another test for multiple chaining
Fidget-Spinner 2b09de6
fix typo
Fidget-Spinner d980702
Clean up some comments
Fidget-Spinner 45f7894
Merge remote-tracking branch 'upstream/master' into pep612
Fidget-Spinner d6f777c
remove stray whitespace
Fidget-Spinner 9a8176b
Address nearly all of Guido's reviews
Fidget-Spinner fa06838
more reviews; fix some docstrings, clean up code, cast list to tuple …
Fidget-Spinner b8672cd
remove uneeded tests copied over from typevar
Fidget-Spinner 51a463c
remove unused variable
Fidget-Spinner 6d5b754
Merge remote-tracking branch 'upstream/master' into pep612
Fidget-Spinner c05d5d7
merge length checking into _has_special_args too
Fidget-Spinner c49ba30
Update Lib/_collections_abc.py
gvanrossum 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
Next
Next commit
Add ParamSpec and Concatenate
- Loading branch information
commit 219b4ee5f98f5293e75024103f2f9d8400f577e2
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
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.
Uh oh!
There was an error while loading. Please reload this page.