Skip to content

Commit 9d48f87

Browse files
Address review comments.
1 parent 3159b21 commit 9d48f87

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,8 +2389,8 @@ types.
23892389
disallowed in Python 3.15. To create a NamedTuple class with 0 fields,
23902390
use ``class NT(NamedTuple): pass`` or ``NT = NamedTuple("NT", [])``.
23912391

2392-
.. versionchanged:: 3.13
2393-
Added support of multiple inheritence.
2392+
.. versionchanged:: 3.14
2393+
Added support for arbitrary multiple inheritance.
23942394

23952395
.. class:: NewType(name, tp)
23962396

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,9 +1397,6 @@ typing
13971397
(Contributed by Mehdi Drissi in :gh:`89547`.)
13981398

13991399

1400-
* Add support of multiple inheritance with :class:`~typing.NamedTuple`.
1401-
(Contributed by Serhiy Storchaka in :gh:`116241`.)
1402-
14031400
unicodedata
14041401
-----------
14051402

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ typing
574574
* Remove :class:`!typing.ByteString`. It had previously raised a
575575
:exc:`DeprecationWarning` since Python 3.12.
576576

577+
* Add support of multiple inheritance with :class:`~typing.NamedTuple`.
578+
Previously, multiple inheritance was only supported if there was exactly
579+
one other base and the base was :class:`typing.Generic`.
580+
(Contributed by Serhiy Storchaka in :gh:`116241`.)
581+
577582
urllib
578583
------
579584

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add support of multiple inheritance with :class:`typing.NamedTuple`.
1+
Add support for arbitrary multiple inheritance with :class:`typing.NamedTuple`.

0 commit comments

Comments
 (0)