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.
__required_keys__
__optional_keys__
1 parent 83bde57 commit a372a7dCopy full SHA for a372a7d
Doc/library/typing.rst
@@ -1544,6 +1544,9 @@ These are not used in annotations. They are building blocks for declaring types.
1544
True
1545
1546
.. attribute:: __required_keys__
1547
+
1548
+ .. versionadded:: 3.9
1549
1550
.. attribute:: __optional_keys__
1551
1552
``Point2D.__required_keys__`` and ``Point2D.__optional_keys__`` return
@@ -1566,6 +1569,8 @@ These are not used in annotations. They are building blocks for declaring types.
1566
1569
>>> Point3D.__optional_keys__ == frozenset({'x', 'y'})
1567
1570
1568
1571
1572
1573
1574
See :pep:`589` for more examples and detailed rules of using ``TypedDict``.
1575
1576
.. versionadded:: 3.8
0 commit comments