@@ -2435,19 +2435,6 @@ types.
2435
2435
Using :func: `super ` (and the ``__class__ `` :term: `closure variable `) in methods of ``NamedTuple `` subclasses
2436
2436
is unsupported and causes a :class: `TypeError `.
2437
2437
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
-
2451
2438
.. class :: NewType(name, tp)
2452
2439
2453
2440
Helper class to create low-overhead :ref: `distinct types <distinct >`.
@@ -2823,13 +2810,6 @@ types.
2823
2810
.. versionchanged :: 3.13
2824
2811
Support for the :data: `ReadOnly ` qualifier was added.
2825
2812
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", {}) ``.
2833
2813
2834
2814
Protocols
2835
2815
---------
0 commit comments