File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -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 >`.
You can’t perform that action at this time.
0 commit comments