An object frequently used to represent the absence of a value, as when
default arguments are not passed to a function. Assignments to ``None``
are illegal and raise a :exc:`SyntaxError`.
- ``None`` is the sole instance of the :data:`~types.NoneType` type.
+ ``None`` is the sole instance of the :class:`~types.NoneType` type.
.. data:: NotImplemented
the other type; may be returned by the in-place binary special methods
(e.g. :meth:`~object.__imul__`, :meth:`~object.__iand__`, etc.) for the same purpose.
It should not be evaluated in a boolean context.
- :data:`!NotImplemented` is the sole instance of the :data:`types.NotImplementedType` type.
+ :data:`!NotImplemented` is the sole instance of the :class:`types.NotImplementedType` type.
.. note::
The same as the ellipsis literal "``...``", an object frequently used to
indicate that something is omitted. Assignment to ``Ellipsis`` is possible, but
assignment to ``...`` raises a :exc:`SyntaxError`.
- ``Ellipsis`` is the sole instance of the :data:`types.EllipsisType` type.
+ ``Ellipsis`` is the sole instance of the :class:`types.EllipsisType` type.
.. data:: __debug__
Standard names are defined for the following types:
-.. data:: NoneType
+.. class:: NoneType
The type of :data:`None`.
.. versionadded:: 3.7
-.. data:: NotImplementedType
+.. class:: NotImplementedType
The type of :data:`NotImplemented`.
creating :class:`!ModuleType` instances which ensures the various
attributes are set appropriately.
-.. data:: EllipsisType
+.. class:: EllipsisType
The type of :data:`Ellipsis`.
types
-----
-Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType`
-and :data:`types.NotImplementedType` classes, providing a new set
+Reintroduce the :class:`types.EllipsisType`, :class:`types.NoneType`
+and :class:`types.NotImplementedType` classes, providing a new set
of types readily interpretable by type checkers.
(Contributed by Bas van Beek in :issue:`41810`.)