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

bpo-40185: Refactor typing.NamedTuple by serhiy-storchaka · Pull Request #19371 · python/cpython · GitHub

Repository navigation

bpo-40185: Refactor typing.NamedTuple - #19371

Merged
serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:refactor-typing-namedtuple
Apr 8, 2020
Merged

serhiy-storchaka merged 3 commits into
python:masterfrom
serhiy-storchaka:refactor-typing-namedtuple

Conversation

serhiy-storchaka commented Apr 4, 2020 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

ilevkivskyi 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

I like this change, because people sometimes erroneously percept NamedTuple as a "normal" class. I would however double-check with Guido if he is also OK with this.

Comment thread Lib/test/test_typing.py
pass
with self.assertRaises(TypeError):
class X(NamedTuple, A):
x: int

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

Looks like a bad merge/rebase, you already added this test in a different PR.

gvanrossum 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

A work of art!

serhiy-storchaka merged commit a2ec069 into python:master Apr 8, 2020
serhiy-storchaka deleted the refactor-typing-namedtuple branch April 8, 2020 07:59

Copy link
Copy Markdown
Member Author

Thanks. 😊

juliusgeo added a commit to juliusgeo/cpython that referenced this pull request Mar 4, 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

Labels

skip news type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL