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
Yeah, this kind of unfortunate. The motivation for this is that it's common to declare abstract methods with only pass in the body, and even if the method is declared to return a non-None value. However, we probably should have at least a strictness setting to catch this issue (if we can't make it the default). Once we support enabling/disabling individual error codes, we could perhaps use this mechanism to implement the option. Surprisingly, I couldn't find an existing issue about this.
bug
(or at least: where is this documented?)
or even just:
An error; either "None found where Iterator[int] expected" or "Not all paths return a value" or some such.
Note that python doesn't like this code:
mypy 0.730
Python 3.7.3
yes. (mypy-0.760+dev.f9955ae1101cd7d1b38c39e8fba77f1d74986a02 , Python 3.8.0)
I was originally using:
but when I tested mypy from git, I used (a) no flags and (b)
--strict
.The text was updated successfully, but these errors were encountered: