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.
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 >`.
You can’t perform that action at this time.
0 commit comments