bpo-43224: Add TypeVarTuple.__name__ by JelleZijlstra · Pull Request #31954 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Conversation
I noticed that TypeVar and ParamSpec put their name in a __name__ attribute, but TypeVarTuple doesn't. Let's be consistent.
cc @mrahtz. Skipping news because we never released the previous version.
| self.assertEqual(repr(Unpack[tuple[Unpack[Ts]]]), '*tuple[*Ts]') | ||
| self.assertEqual(repr(Unpack[Tuple[Unpack[Ts]]]), '*typing.Tuple[*Ts]') | ||
|
|
||
| def test_repr_is_correct(self): |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed this is the same as the function above.
mrahtz
mannequin
mentioned this pull request
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