Fix markup bug in PEP 544

This commit is contained in:
Guido van Rossum 2018-04-03 11:22:59 -07:00
parent 9012ec6e8c
commit 5af613bbb2
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ However, it should be possible for protocol types to implement custom
instance and class checks when this makes sense, similar to how ``Iterable``
and other ABCs in ``collections.abc`` and ``typing`` already do it,
but this is limited to non-generic and unsubscripted generic protocols
(``Iterable`` is statically equivalent to ``Iterable[Any]`).
(``Iterable`` is statically equivalent to ``Iterable[Any]``).
The ``typing`` module will define a special ``@runtime`` class decorator
that provides the same semantics for class and instance checks as for
``collections.abc`` classes, essentially making them "runtime protocols"::