8000 [3.12] gh-104943: Remove mentions of old Python versions (GH-104945) … · python/cpython@6324458 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6324458

Browse files
[3.12] gh-104943: Remove mentions of old Python versions (GH-104945) (#104963)
(cherry picked from commit 46857d0) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
1 parent bd2cc41 commit 6324458

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Lib/typing.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@ def __new__(cls, typename, bases, ns):
27152715
def NamedTuple(typename, fields=None, /, **kwargs):
27162716
"""Typed version of namedtuple.
27172717
2718-
Usage in Python versions >= 3.6::
2718+
Usage::
27192719
27202720
class Employee(NamedTuple):
27212721
name: str
@@ -2732,9 +2732,6 @@ class Employee(NamedTuple):
27322732
27332733
Employee = NamedTuple('Employee', name=str, id=int)
27342734
2735-
In Python versions <= 3.5 use::
2736-
2737-
Employee = NamedTuple('Employee', [('name', str), ('id', int)])
27382735
"""
27392736
if fields is None:
27402737
fields = kwargs.items()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove mentions of old Python versions in :class:`typing.NamedTuple`.

0 commit comments

Comments
 (0)
0