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 be602fc commit 3dd9afcCopy full SHA for 3dd9afc
Doc/library/typing.rst
@@ -2257,7 +2257,7 @@ These functions and classes should not be used directly as annotations.
2257
Their intended purpose is to be building blocks for creating and declaring
2258
types.
2259
2260
-.. function:: NamedTuple
+.. class:: NamedTuple
2261
2262
Typed version of :func:`collections.namedtuple`.
2263
@@ -2486,7 +2486,7 @@ types.
2486
for more details.
2487
2488
2489
-.. function:: TypedDict
+.. class:: TypedDict(dict)
2490
2491
Special construct to add type hints to a dictionary.
2492
At runtime ":class:`!TypedDict` instances" are simply :class:`dicts <dict>`.
0 commit comments