Skip to content

Allow TypedDict field names starting with underscore - #2839

Merged
JukkaL merged 1 commit into
python:masterfrom
ilevkivskyi:allow-typeddict-underscores
Mar 6, 2017
Merged

JukkaL merged 1 commit into
python:masterfrom
ilevkivskyi:allow-typeddict-underscores

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

As proposed by @JukkaL in discussion of #2808
Unlike NamedTuple, where the limitation on field names is imposed by underlying collections.namedtuple, here we are free. In case if we decide to include special keyword arguments later, we could just check for those particular names.

@JukkaL

JukkaL commented Mar 6, 2017

Copy link
Copy Markdown
Collaborator

Thanks for the PR! LGTM

@JukkaL
JukkaL merged commit 737ce9e into python:master Mar 6, 2017
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.

2 participants