|
|
|
|
|
by stefanhoelzl
1779 days ago
|
|
Yes exactly, mypy will catch mismatching types.
But in my example I do not have mismatching types, but still can detect an issue when testing a function which expects `Optional[float]` only with an `int`. Regarding literals or annotated variables: mypy will detect mismatching types in both cases. |
|