Skip to content

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

Closed
@tomasr8

Description

@tomasr8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions