Skip to content

Commit 3f3fbc4

Browse files
committed
Remove .. deprecated-removed notes for typing.NamedTuple
1 parent c863349 commit 3f3fbc4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Doc/library/typing.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,19 +2435,6 @@ types.
24352435
Using :func:`super` (and the ``__class__`` :term:`closure variable`) in methods of ``NamedTuple`` subclasses
24362436
is unsupported and causes a :class:`TypeError`.
24372437

2438-
.. deprecated-removed:: 3.13 3.15
2439-
The undocumented keyword argument syntax for creating NamedTuple classes
2440-
(``NT = NamedTuple("NT", x=int)``) is deprecated, and will be disallowed
2441-
in 3.15. Use the class-based syntax or the functional syntax instead.
2442-
2443-
.. deprecated-removed:: 3.13 3.15
2444-
When using the functional syntax to create a NamedTuple class, failing to
2445-
pass a value to the 'fields' parameter (``NT = NamedTuple("NT")``) is
2446-
deprecated. Passing ``None`` to the 'fields' parameter
2447-
(``NT = NamedTuple("NT", None)``) is also deprecated. Both will be
2448-
disallowed in Python 3.15. To create a NamedTuple class with 0 fields,
2449-
use ``class NT(NamedTuple): pass`` or ``NT = NamedTuple("NT", [])``.
2450-
24512438
.. class:: NewType(name, tp)
24522439

24532440
Helper class to create low-overhead :ref:`distinct types <distinct>`.

0 commit comments

Comments
 (0)