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)

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