Skip to content

Commit

Permalink
[3.12] gh-104943: Remove mentions of old Python versions (GH-104945) (#…
Browse files Browse the repository at this point in the history
…104963)

(cherry picked from commit 46857d0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
  • Loading branch information
miss-islington and tomasr8 authored May 26, 2023
1 parent bd2cc41 commit 6324458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,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
Expand All @@ -2732,9 +2732,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()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove mentions of old Python versions in :class:`typing.NamedTuple`.

0 comments on commit 6324458

Please sign in to comment.