⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@ These functions and classes should not be used directly as annotations.
Their intended purpose is to be building blocks for creating and declaring
types.

.. function:: NamedTuple
.. class:: NamedTuple

Typed version of :func:`collections.namedtuple`.

Expand Down Expand Up @@ -2589,7 +2589,7 @@ types.
for more details.


.. function:: TypedDict
.. class:: TypedDict(dict)
Copy link
Member

@sobolevn sobolevn Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would fix #143728, see https://docs.python.org/3.15/library/typing.html#typing.__total__


Special construct to add type hints to a dictionary.
At runtime ":class:`!TypedDict` instances" are simply :class:`dicts <dict>`.
Expand Down
Loading