[3.12] gh-104943: Remove mentions of old Python versions (GH-104945) (#104963)

(cherry picked from commit 46857d0b2a)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-05-26 00:15:56 -07:00 committed by GitHub
parent bd2cc41d38
commit 6324458bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -2715,7 +2715,7 @@ class NamedTupleMeta(type):
def NamedTuple(typename, fields=None, /, **kwargs):
"""Typed version of namedtuple.
Usage in Python versions >= 3.6::
Usage::
class Employee(NamedTuple):
name: str
@ -2732,9 +2732,6 @@ def NamedTuple(typename, fields=None, /, **kwargs):
Employee = NamedTuple('Employee', name=str, id=int)
In Python versions <= 3.5 use::
Employee = NamedTuple('Employee', [('name', str), ('id', int)])
"""
if fields is None:
fields = kwargs.items()