Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove mentions of old Python versions in typing.NamedTuple docstring #104943

Closed
tomasr8 opened this issue May 25, 2023 · 0 comments
Closed

Remove mentions of old Python versions in typing.NamedTuple docstring #104943

tomasr8 opened this issue May 25, 2023 · 0 comments
Labels
docs Documentation in the Doc dir topic-typing

Comments

@tomasr8
Copy link
Member

tomasr8 commented May 25, 2023

Documentation

This came up in this PR
In typing.NamedTuple there are some mentions to Python 3.5 & 3.6 which can be removed:

Usage in Python versions >= 3.6::

cpython/Lib/typing.py

Lines 2729 to 2731 in bd1b622

In Python versions <= 3.5 use::
Employee = NamedTuple('Employee', [('name', str), ('id', int)])

Linked PRs

@tomasr8 tomasr8 added the docs Documentation in the Doc dir label May 25, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 26, 2023
)

(cherry picked from commit 46857d0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 26, 2023
)

(cherry picked from commit 46857d0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
hauntsaninja pushed a commit that referenced this issue May 26, 2023
…104962)

(cherry picked from commit 46857d0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
hauntsaninja pushed a commit that referenced this issue May 26, 2023
…104963)

(cherry picked from commit 46857d0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
docs Documentation in the Doc dir topic-typing
Projects
None yet
Development

No branches or pull requests

3 participants