I'm aware of this https://github.com/python/mypy/issues/6710 I understand the points raised here https://github.com/python/mypy/issues/6710 However the current issue is that ``` raise NotImplemented() ``` seems perfectly valid to mypy when in fact it isn't, since it's not callable. So basically, it should have been a `NotImplementedError` but mypy didn't find it (I found it with pyflakes). Do you think it is possible to make it an almost-but-non-callable-Any? Otherwise it could perhaps be mypy to warn about odd uses?
Activity
srittau commentedon Oct 7, 2019
We could try to makeNotImplementeda sub-class ofAnyand override__call__():Not very elegant and the error message is not correct, but maybe better than nothing?Typo in
bar(). Does not work.builtins: NotImplemented is not callable
builtins: NotImplemented is not callable (#4222)
builtins: NotImplemented is not callable (python#4222)