classification
Title: Update typing module documentation for NamedTuple
Type: Stage:
Components: Documentation Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, gvanrossum, levkivskyi, python-dev
Priority: normal Keywords: patch

Created on 2016-09-12 19:07 by levkivskyi, last changed 2016-10-25 16:54 by python-dev. This issue is now closed.

Files
File name Uploaded Description Edit
nmtuple-doc.diff levkivskyi, 2016-09-12 19:07 review
Messages (6)
msg276092 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2016-09-12 19:07
The implementation of NamedTuple in typing module has been extended to support PEP 526 variable annotation syntax.

Here is he patch that updates documentation accordingly.
msg276095 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2016-09-12 19:23
Honestly I think it's better if this remains a "hidden" feature until we have support for it in mypy. So let's wait for that.
msg276096 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2016-09-12 19:24
OK
msg279374 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2016-10-25 08:14
Guido,

> Honestly I think it's better if this remains a "hidden" feature until we have support for it in mypy. So let's wait for that.

This patch now could be applied (since the mypy PR for this is merged).
msg279420 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2016-10-25 16:54
Thanks, applied!
msg279421 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-10-25 16:54
New changeset 78c0487562d9 by Guido van Rossum in branch '3.6':
Issue #28107: Update typing module documentation for NamedTuple (Ivan)
https://hg.python.org/cpython/rev/78c0487562d9

New changeset 709b19b9d6ea by Guido van Rossum in branch 'default':
Issue #28107: Update typing module documentation for NamedTuple (Ivan) (3.6->3.7)
https://hg.python.org/cpython/rev/709b19b9d6ea
History
Date User Action Args
2016-10-25 16:54:52python-devsetnosy: + python-dev
messages: + msg279421
2016-10-25 16:54:43gvanrossumsetstatus: open -> closed
resolution: fixed
messages: + msg279420
2016-10-25 08:43:24serhiy.storchakasettitle: Update typing module dicumentation for NamedTuple -> Update typing module documentation for NamedTuple
2016-10-25 08:14:34levkivskyisetmessages: + msg279374
2016-09-12 19:24:11levkivskyisetmessages: + msg276096
2016-09-12 19:23:16gvanrossumsetmessages: + msg276095
2016-09-12 19:07:22levkivskyicreate