Skip to content

Commit 06703d6

Browse files
authored
Remove .. deprecated-removed notes for typing.{NamedTuple, TypedDict} (#139298)
1 parent 7016044 commit 06703d6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Doc/library/typing.rst

Lines changed: 0 additions & 20 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>`.
@@ -2823,13 +2810,6 @@ types.
28232810
.. versionchanged:: 3.13
28242811
Support for the :data:`ReadOnly` qualifier was added.
28252812

2826-
.. deprecated-removed:: 3.13 3.15
2827-
When using the functional syntax to create a TypedDict class, failing to
2828-
pass a value to the 'fields' parameter (``TD = TypedDict("TD")``) is
2829-
deprecated. Passing ``None`` to the 'fields' parameter
2830-
(``TD = TypedDict("TD", None)``) is also deprecated. Both will be
2831-
disallowed in Python 3.15. To create a TypedDict class with 0 fields,
2832-
use ``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
28332813

28342814
Protocols
28352815
---------

0 commit comments

Comments
 (0)