summaryrefslogtreecommitdiffstats
path: root/Doc/library/types.rst
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2020-09-22 15:55:34 (GMT)
committerGitHub <noreply@github.com>2020-09-22 15:55:34 (GMT)
commit0d0e9fe2ffc1683758a1985ef6dedeef5ecafdbc (patch)
tree6b8cf4e733d804aaf7f841c0d37d48edff7b710d /Doc/library/types.rst
parenta68a2ad19c891faa891904b3da537911cc77df21 (diff)
downloadcpython-0d0e9fe2ffc1683758a1985ef6dedeef5ecafdbc.zip
cpython-0d0e9fe2ffc1683758a1985ef6dedeef5ecafdbc.tar.gz
cpython-0d0e9fe2ffc1683758a1985ef6dedeef5ecafdbc.tar.bz2
bpo-41810: Reintroduce `types.EllipsisType`, `.NoneType` & `.NotImplementedType` (GH-22336)
closes issue 41810
Diffstat (limited to 'Doc/library/types.rst')
-rw-r--r--Doc/library/types.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 79acdf4..25fa750 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -103,6 +103,13 @@ If you instantiate any of these types, note that signatures may vary between Pyt
Standard names are defined for the following types:
+.. data:: NoneType
+
+ The type of :data:`None`.
+
+ .. versionadded:: 3.10
+
+
.. data:: FunctionType
LambdaType
@@ -186,6 +193,13 @@ Standard names are defined for the following types:
.. versionadded:: 3.7
+.. data:: NotImplementedType
+
+ The type of :data:`NotImplemented`.
+
+ .. versionadded:: 3.10
+
+
.. data:: MethodDescriptorType
The type of methods of some built-in data types such as :meth:`str.join`.
@@ -236,6 +250,13 @@ Standard names are defined for the following types:
Defaults to ``None``. Previously the attribute was optional.
+.. data:: EllipsisType
+
+ The type of :data:`Ellipsis`.
+
+ .. versionadded:: 3.10
+
+
.. class:: TracebackType(tb_next, tb_frame, tb_lasti, tb_lineno)
The type of traceback objects such as found in ``sys.exc_info()[2]``.