summaryrefslogtreecommitdiffstats
path: root/Doc/library/typing.rst
diff options
context:
space:
mode:
authorDevilXD <DevilXD@users.noreply.github.com>2021-04-10 22:36:40 (GMT)
committerGitHub <noreply@github.com>2021-04-10 22:36:40 (GMT)
commitac05f82ad4983e3d3653ae7494c1ff62c4a265fc (patch)
tree2ac5b5d7bee7d9a664ab1821eddfce25450cd3c2 /Doc/library/typing.rst
parent09bbebea163fe7303264cf4069c51d4d2f22fde4 (diff)
downloadcpython-ac05f82ad4983e3d3653ae7494c1ff62c4a265fc.zip
cpython-ac05f82ad4983e3d3653ae7494c1ff62c4a265fc.tar.gz
cpython-ac05f82ad4983e3d3653ae7494c1ff62c4a265fc.tar.bz2
bpo-41974: Remove part of the note regarding complex.__float__ (GH-25197)
(The deleted example no longer works and is thus irrelevant.)
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r--Doc/library/typing.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index f6d1ccb..8af57f3 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1144,10 +1144,7 @@ These are not used in annotations. They are building blocks for creating generic
.. note::
:func:`runtime_checkable` will check only the presence of the required methods,
- not their type signatures! For example, :class:`builtins.complex <complex>`
- implements :func:`__float__`, therefore it passes an :func:`issubclass` check
- against :class:`SupportsFloat`. However, the ``complex.__float__`` method
- exists only to raise a :class:`TypeError` with a more informative message.
+ not their type signatures.
.. versionadded:: 3.8