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

(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:13:45 -07:00 committed by GitHub
parent b764347572
commit 13424746ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -2876,7 +2876,7 @@ def __new__(cls, typename, bases, ns):
def NamedTuple(typename, fields=None, /, **kwargs):
"""Typed version of namedtuple.
Usage in Python versions >= 3.6::
Usage::
class Employee(NamedTuple):
name: str
@ -2893,9 +2893,6 @@ class Employee(NamedTuple):
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()

View file

@ -0,0 +1 @@
Remove mentions of old Python versions in :class:`typing.NamedTuple`.