Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type __call__ on builtins._NotImplementedType as None. (#12984)
Currently, this is intentionally incorrectly typed in order to produce a better mypy error message. But pyright (and presumably other type checkers) end up just treating instances of _NotImplementedType as callable. With this change, the mypy error message gets a little worse, but other type checkers can understand that instances of _NotImplementedType aren't callable, which I think is an improvement.
- Loading branch information