[New-bugs-announce] [issue40978] Document that typing.SupportsXXX protocols are runtime checkable

ramalho report at bugs.python.org
Sun Jun 14 15:43:07 EDT 2020


New submission from ramalho <luciano at ramalho.org>:

The typing module documentation (https://docs.python.org/3/library/typing.html#typing.SupportsInt) does not mention that the protocols listed below are all decorated with `@runtime_checkable`. This should mentioned in the entry for each protocol and also in the entry for `@runtime_checkable`

* SupportsAbs
* SupportsBytes
* SupportsComplex
* SupportsFloat
* SupportsIndex
* SupportsInt
* SupportsRound

----------
assignee: docs at python
components: Documentation
messages: 371513
nosy: docs at python, ramalho
priority: normal
severity: normal
status: open
title: Document that typing.SupportsXXX protocols are runtime checkable
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40978>
_______________________________________


More information about the New-bugs-announce mailing list