We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypedDict
NamedTuple
class
1 parent 80e9eaf commit 865eb12Copy full SHA for 865eb12
Doc/library/typing.rst
@@ -2369,7 +2369,7 @@ These functions and classes should not be used directly as annotations.
2369
Their intended purpose is to be building blocks for creating and declaring
2370
types.
2371
2372
-.. function:: NamedTuple
+.. class:: NamedTuple
2373
2374
Typed version of :func:`collections.namedtuple`.
2375
@@ -2589,7 +2589,7 @@ types.
2589
for more details.
2590
2591
2592
-.. function:: TypedDict
+.. class:: TypedDict(dict)
2593
2594
Special construct to add type hints to a dictionary.
2595
At runtime ":class:`!TypedDict` instances" are simply :class:`dicts <dict>`.
0 commit comments