corrected import in sample (#1220)

This commit is contained in:
Mike Pagel 2019-11-04 15:11:13 +01:00 committed by Ivan Levkivskyi
parent 28c92ac457
commit 5698c21e8b
1 changed files with 1 additions and 1 deletions

View File

@ -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):