FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

/ cpython Public

bpo-43224: Add TypeVarTuple.__name__ - #31954

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:tvtname
Mar 18, 2022
Merged

bpo-43224: Add TypeVarTuple.__name__#31954
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:tvtname

Conversation

JelleZijlstra commented Mar 17, 2022
edited
Loading

Copy link
Copy Markdown
Member

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

https://bugs.python.org/issue43224

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

Copy link
Copy Markdown
Member Author

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

Comment thread Lib/test/test_typing.py
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):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Noticed this is the same as the function above.

mrahtz commented Mar 19, 2022

Copy link
Copy Markdown
Contributor

Thanks Jelle!

mrahtz mannequin mentioned this pull request Apr 11, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL