Check that return value is compatible [return-value]

Mypy checks that the returned value is compatible with the typesignature of the function.

Example:

  1. def func(x: int) -> str:
  2. # Error: Incompatible return value type (got "int", expected "str") [return-value]
  3. return x + 1