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

Add a backport of generic `NamedTuple`s by AlexWaygood · Pull Request #44 · python/typing_extensions · GitHub

Repository navigation

Add a backport of generic NamedTuples - #44

Merged
JelleZijlstra merged 21 commits into
python:mainfrom
AlexWaygood:namedtuple
May 26, 2022
Merged

JelleZijlstra merged 21 commits into
python:mainfrom
AlexWaygood:namedtuple

Conversation

AlexWaygood commented May 20, 2022 •
edited
Loading

Copy link
Copy Markdown
Member

This PR backports the ability, added in python/cpython#92027, to define generic NamedTuple classes. The implementation and the tests are very similar to the implementation on the CPython main branch, with a few tweaks so that it all works on earlier versions of Python as well.

#7

AlexWaygood marked this pull request as ready for review May 20, 2022 19:48

Copy link
Copy Markdown
Member Author

I think this is now ready for review!

srittau left a comment

Copy link
Copy Markdown
Collaborator

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

I don't really claim to know what's going in this code, but everything seems reasonable and makes sense to me, but I have a few small remarks.

Comment thread README.md Outdated
Comment thread src/typing_extensions.py Outdated
Comment thread src/typing_extensions.py Outdated

JelleZijlstra left a comment

Copy link
Copy Markdown
Member

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

Thank you! I have a few small comments.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/test_typing_extensions.py Outdated
Comment thread src/typing_extensions.py
Comment thread src/typing_extensions.py Outdated
AlexWaygood requested a review from JelleZijlstra May 21, 2022 15:39
Comment thread src/typing_extensions.py Outdated
Comment thread src/test_typing_extensions.py Outdated
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra merged commit 7c28357 into python:main May 26, 2022

Copy link
Copy Markdown
Member

Thank you!

AlexWaygood deleted the namedtuple branch May 26, 2022 04:48

Copy link
Copy Markdown
Member Author

Thank you! Super excited to see this happen :D

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL