Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message for incompatible return type (#735)
The existing message was too verbose and arguably the compatibility was in the wrong direction. For comparison: - Pyre: Incompatible return type [7]: Expected `str` but got `bool` - Mypy: Incompatible return value type (got "bool", expected "str") - Pyright: Expression of type "Literal[False]" cannot be assigned to return type "None"
- Loading branch information