Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Oct 9, 2024
1 parent 3159b21 commit 9d48f87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2389,8 +2389,8 @@ types.
disallowed in Python 3.15. To create a NamedTuple class with 0 fields,
use ``class NT(NamedTuple): pass`` or ``NT = NamedTuple("NT", [])``.

.. versionchanged:: 3.13
Added support of multiple inheritence.
.. versionchanged:: 3.14
Added support for arbitrary multiple inheritance.

.. class:: NewType(name, tp)

Expand Down
3 changes: 0 additions & 3 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,6 @@ typing
(Contributed by Mehdi Drissi in :gh:`89547`.)


* Add support of multiple inheritance with :class:`~typing.NamedTuple`.
(Contributed by Serhiy Storchaka in :gh:`116241`.)

unicodedata
-----------

Expand Down
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ typing
* Remove :class:`!typing.ByteString`. It had previously raised a
:exc:`DeprecationWarning` since Python 3.12.

* Add support of multiple inheritance with :class:`~typing.NamedTuple`.
Previously, multiple inheritance was only supported if there was exactly
one other base and the base was :class:`typing.Generic`.
(Contributed by Serhiy Storchaka in :gh:`116241`.)

urllib
------

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add support of multiple inheritance with :class:`typing.NamedTuple`.
Add support for arbitrary multiple inheritance with :class:`typing.NamedTuple`.

0 comments on commit 9d48f87

Please sign in to comment.