◐ Shell
clean mode source ↗

bpo-43224: Add TypeVarTuple.__name__ by JelleZijlstra · Pull Request #31954 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

I noticed that TypeVar and ParamSpec put their name in a __name__
attribute, but TypeVarTuple doesn't. Let's be consistent.

@JelleZijlstra

cc @mrahtz. Skipping news because we never released the previous version.

JelleZijlstra

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.

serhiy-storchaka

@mrahtz

@mrahtz mrahtz mannequin mentioned this pull request

Apr 11, 2022

Labels