mypy thinks raise NotImplemented
is okay · Issue #5710 · python/mypy (original) (raw)
A mistake I've seen several times is to write raise NotImplemented
rather than raise NotImplementedError
. mypy is silent about this bug:
$ mypy --version
mypy 0.630
$ cat example.py
def f():
# type: () -> None
raise NotImplemented
$ mypy example.py
$