Closed wchresta closed 3 years ago
Running the plugin with mypy==0.711 on the following code leads to an error:
mypy==0.711
from adt import adt, Case @adt class Expression: LITERAL: Case[float] result: None = Expression.LITERAL(0.1).match(literal=lambda n: None)
error: Cannot infer type argument 1 of "match" of "Expression"
This does not happen when using something other than None as return values:
None
result: int = Expression.LITERAL(0.1).match(literal=lambda n: 1)
Running the plugin with
mypy==0.711
on the following code leads to an error:This does not happen when using something other than
None
as return values: