This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Henry Schreiner
Recipients Henry Schreiner, docs@python
Date 2021-03-09.21:16:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615324586.52.0.680787948676.issue43453@roundup.psfhosted.org>
In-reply-to
Content
The documentation here: https://docs.python.org/3/library/typing.html#typing.runtime_checkable refers to "For example, builtins.complex implements __float__(), therefore it passes an issubclass() check against SupportsFloat. However, the complex.__float__ method exists only to raise a TypeError with a more informative message.".

However, that's not true in Python 3.10 anymore, those methods were thankfully removed. See https://docs.python.org/3.10/whatsnew/3.10.html#removed or https://bugs.python.org/issue41974 for the removal.

This documentation should either say "before Python 3.10, ...", or pick some other example that still is valid. Happy to make the change if I know what direction this should go.
History
Date User Action Args
2021-03-09 21:16:26Henry Schreinersetrecipients: + Henry Schreiner, docs@python
2021-03-09 21:16:26Henry Schreinersetmessageid: <1615324586.52.0.680787948676.issue43453@roundup.psfhosted.org>
2021-03-09 21:16:26Henry Schreinerlinkissue43453 messages
2021-03-09 21:16:26Henry Schreinercreate