-
-
Notifications
You must be signed in to change notification settings - Fork 122
Support ParamSpec for TypeAliasType #449
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 12 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
b6bc323
Support ParamSpec for TypeAliasType
Daraan 79985f3
Removed trailing whitespaces
Daraan 02025d4
Merge branch 'main' into TypeAliasType-extension
Daraan 3199b7b
raise TypeError for invalid type_params like typing.TypeAliasType
Daraan f7d79d9
Keep dunder attributes like typing.TypeAliasType
Daraan c4c0e68
Added test to catch invalid cases, fix wrong intendation
Daraan d6af983
removed pyright pragma
Daraan 0a5039b
fix whitespaces
Daraan e532429
Avoid incompatible global types
Daraan 9911ac7
Add __name__ for TypeAliasType for <=3.10
Daraan e1b3095
Added missing support for Unpack to TypeAliasType variant
Daraan 408ae2e
Added more invalid test cases
Daraan 621085f
Merge branch 'main' into TypeAliasType-extension
Daraan b3e6b7a
8000
Unpack invalid Concatenate correctly
Daraan c3d98c6
Removed parameter checking from TypeAliasType._check_parameter
Daraan 8255667
extended and reworked tests
Daraan 255de76
Clean duplicated tests
Daraan 3037923
Removed duplicated or valid cases from invalid
Daraan b8ae82e
Slightly more refined tests covering more cases
Daraan 8d2ec0a
Removed cases that is mentioned elsewhere
Daraan 7029d51
Revert change of global Protocol variables
Daraan 02fd0ba
Raise TypeError on parameterless alias
Daraan 5c0938c
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan b6fefb0
Correct subscription handling when type_params are empty
Daraan af0a133
Restructured test cases
Daraan f2aa35c
Added general and comprehensive test
Daraan 6b1bafb
Subtests to test parameter amount
Daraan 7c1fea7
unify __getitem__ again
Daraan efa1214
covered all cases for TypeErrors during subscription
Daraan 66eebb1
Removed code addressing #468
Daraan df10751
Use _types.GenericAlias for TypeAliasType in 3.10+
Daraan 889e9ae
Assure that args and parameter tests pass
Daraan b6b5a14
Remove code to fix dunder attributes -> other PR
Daraan 9562635
small reordering
Daraan 0033813
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan 014109c
Remove invalid case
Daraan 0b3ce7d
Updated to latest changes from main
Daraan 0ae4c63
revert mistakes of wrong merge
Daraan 144c7b8
Merge branch 'main' into TypeAliasType-extension
AlexWaygood e613294
No need to skip tests anymore
Daraan e44fdcc
Merge remote-tracking branch 'origin/TypeAliasType-extension' into Ty…
Daraan 6bc1f57
removed tests related to: https://github.com/python/cpython/issues/12…
Daraan e8bfa30
Removed tests related to #474
Daraan 617656d
Removed invalid tests
Daraan 41a87b8
minor comment update
Daraan a8c4bda
Merge branch 'main' into TypeAliasType-extension
Daraan 249b869
More refined skip reason
Daraan e71902e
Remove type check for tuples; handled by #477
Daraan b8799ce
updated changelog
Daraan 5bc1360
3.8, 3.9 use collected parameters more explicitly
Daraan 3ae9e35
Correct error message for 3.10
Daraan 9878cc0
Merge branch 'main' into TypeAliasType-extension
Daraan 3863c8b
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan 8c86619
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan 251d312
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan b3aa598
Generator not necessary anymore
Daraan 07ba7b7
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan 28d1e84
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan a365355
Merge and type correction
Daraan fb55b88
TODO: handle None
Daraan f2d6890
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan 054f083
Merge remote-tracking branch 'upstream/main' into TypeAliasType-exten…
Daraan eb840ef
Handle None case correctly, also check list
Daraan 02efbdc
Merge branch 'main' into TypeAliasType-extension
Daraan 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
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.