Thanks to visit codestin.com Credit goes to github.com
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 8281cbd commit f235178Copy full SHA for f235178
Doc/library/typing.rst
@@ -1825,6 +1825,9 @@ These are not used in annotations. They are building blocks for declaring types.
1825
True
1826
1827
.. attribute:: __required_keys__
1828
+
1829
+ .. versionadded:: 3.9
1830
1831
.. attribute:: __optional_keys__
1832
1833
``Point2D.__required_keys__`` and ``Point2D.__optional_keys__`` return
@@ -1852,6 +1855,8 @@ These are not used in annotations. They are building blocks for declaring types.
1852
1855
>>> Point3D.__optional_keys__ == frozenset({'x', 'y'})
1853
1856
1854
1857
1858
1859
1860
See :pep:`589` for more examples and detailed rules of using ``TypedDict``.
1861
1862
.. versionadded:: 3.8
0 commit comments