You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like you're being too clever here. Mypy doesn't understand that the elif clause rules out b being None. (Honestly I had to do a double take and re-read the code too before I trusted this was correct.)
We don't have plans to add such logic to mypy, so I recommend rewriting your code to be a bit simpler.
Bug report
Incompatible types error reported on
c
var assignmentNo error reported
Do you see the same issue after installing mypy from Git master?
mypy 0.641
. The is present in master as well.None
The text was updated successfully, but these errors were encountered: