diff options
author | Tomas R <tomas.roun8@gmail.com> | 2023-05-26 06:34:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 06:34:17 (GMT) |
commit | 46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496 (patch) | |
tree | b3da3c2960260e0180fab91ee944f7979eb784f0 /Lib/typing.py | |
parent | 2cf04e455d8f087bd08cd1d43751007b5e41b3c5 (diff) | |
download | cpython-46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496.zip cpython-46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496.tar.gz cpython-46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496.tar.bz2 |
gh-104943: Remove mentions of old Python versions (#104945)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 13f0883..8c87479 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -2709,7 +2709,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 @@ -2726,9 +2726,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() |