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.
NoneType
types
1 parent b44d2bc commit 1c50730Copy full SHA for 1c50730
docs/source/kinds_of_types.rst
@@ -391,8 +391,9 @@ case you should add an explicit ``Optional[...]`` annotation (or type comment).
391
392
The Python interpreter internally uses the name ``NoneType`` for
393
the type of ``None``, but ``None`` is always used in type
394
- annotations. The latter is shorter and reads better. (Besides,
395
- ``NoneType`` is not even defined in the standard library.)
+ annotations. The latter is shorter and reads better. (``NoneType``
+ is available as :py:data:`types.NoneType` on Python 3.10+, but is
396
+ not exposed at all on earlier versions of Python.)
397
398
.. note::
399
0 commit comments