mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[doc] Fix link to abc.collections.Iterable (GH-22502)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit d4b9edd505
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
This commit is contained in:
parent
95de3627f1
commit
fd3d00adb0
1 changed files with 1 additions and 1 deletions
|
@ -903,7 +903,7 @@ These are not used in annotations. They are building blocks for creating generic
|
|||
Such a protocol can be used with :func:`isinstance` and :func:`issubclass`.
|
||||
This raises :exc:`TypeError` when applied to a non-protocol class. This
|
||||
allows a simple-minded structural check, very similar to "one trick ponies"
|
||||
in :mod:`collections.abc` such as :class:`Iterable`. For example::
|
||||
in :mod:`collections.abc` such as :class:`~collections.abc.Iterable`. For example::
|
||||
|
||||
@runtime_checkable
|
||||
class Closable(Protocol):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue