corrected import in sample (#1220)
This commit is contained in:
parent
28c92ac457
commit
5698c21e8b
|
@ -876,7 +876,7 @@ The ``typing`` module will define a special ``@runtime_checkable`` class decorat
|
|||
that provides the same semantics for class and instance checks as for
|
||||
``collections.abc`` classes, essentially making them "runtime protocols"::
|
||||
|
||||
from typing import runtime, Protocol
|
||||
from typing import runtime_checkable, Protocol
|
||||
|
||||
@runtime_checkable
|
||||
class SupportsClose(Protocol):
|
||||
|
|
Loading…
Reference in New Issue