Repository navigation
bpo-43224: Implement PEP 646 changes to typing.py #31021
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 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0a91264
PEP 646: Implement support in typing.py
mrahtz 33dc1bf
Fix typo
mrahtz 51ea1af
Remove unnecessary whitespace
mrahtz fa133dd
Remove some old debug prints
mrahtz 6d1126e
Re-implement Unpack using _SpecialForm
mrahtz 51870e2
📜🤖 Added by blurb_it.
blurb-it[bot] bc12b49
Fix call to is_unpacked_typevartuple
mrahtz 4a647cf
Update docstring for Unpack to reflect that it isn't just for backwar…
mrahtz e4e68a6
Fix _is_unpacked_typevartuple for argument of Unpack[tuple[...]]
mrahtz 7fb4043
Add more tests for repr of variadic classes
mrahtz 4b1b7f6
Add more tests to test_variadic_class_with_2_typevars_accepts_2_or_mo…
mrahtz c4351f9
test_typevar_substitution: Change to loop over test cases
mrahtz 2398387
Merge remote-tracking branch 'python/main' into pep646-typing
mrahtz 95625d1
Fix problems after pulling from main
mrahtz 89cbdeb
_determine_typevar_substitution: Change 'params' to 'args'
mrahtz d4c487d
_determine_typevar_substitution: Add support for unpacked tuples
mrahtz ac4b5f9
Improve docstring for _BoundVarianceMixin
mrahtz fbf1a95
Remove arity checks for things involving a TypeVarTuple
mrahtz 5e0fcab
Add basic __args__ tests
mrahtz 6d86710
Merge branch 'main' into pep646-typing
mrahtz 55f3a5d
fix lint in NEWS file
JelleZijlstra 5212108
Make repr(A[]) == A[()] instead of A[]
mrahtz f2811a0
Add some extra repr tests
mrahtz f5f4440
Remove debug print
mrahtz 45ff353
Make a couple of simplifications
mrahtz ba31d6e
Optimize is_typevar_like
mrahtz 6789326
Refactor tests for variadic get_origin and get_origin into separate c…
mrahtz caf435e
Remove test for a parameterization that's actually invalid
mrahtz 9835938
Move some tests from GetUtilitiesTestCase to TypeVarTupleTests
mrahtz ad5b090
Merge branch 'main' into pep646-typing
JelleZijlstra 2604094
Remove accidental cosmetic change
mrahtz 75cd9d0
Add some type annotations
mrahtz 23b393b
Fix various things in Generic.__class_getitem__
mrahtz f094905
Split up _determine_typevar_substitution
mrahtz b9b1c80
Cut out variadic type substitution logic
mrahtz 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
Fix call to is_unpacked_typevartuple
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
- Loading branch information
commit bc12b492a46ee259f852a6f90702f9938673481b
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.