Running on python3.6 the following code seems to fail without any informative message while passing on mypy. I would expect the same message I see when a method is missing.
from typing_extensions import Protocol
class Concrete:
a: str
class MyProtocol(Protocol):
a: str
def ff(x: MyProtocol) -> None:
pass
ff(Concrete())
Reactions are currently unavailable
Running on python3.6 the following code seems to fail without any informative message while passing on mypy. I would expect the same message I see when a method is missing.
from typing_extensions import Protocol class Concrete: a: str class MyProtocol(Protocol): a: str def ff(x: MyProtocol) -> None: pass ff(Concrete())