Replies: 1 comment
-
Without the actual But just to give you a few hints. Common mistakes in overly specific
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a class named
Filter
that adheres to a Protocol class namedExtractorProtocol
I confirmed an instance of the Filter class adheres to the Protocol by doing this:
Which returns True
However, mypy throws the following error:
error: Incompatible types in assignment (expression has type "Filters", variable has type "ExtractorProtocol") [assignment]
Why can't I use the Protocol class in the typing?
Beta Was this translation helpful? Give feedback.
All reactions