Closed
Description
(using pre-release v2023.3.12361006, because the current release doesn't work at all due to a stray --follow-imports=silent
option)
Steps to reproduce:
- Create a file with:
def temp() -> str:
return "0"
- Observe there are no type errors (as expected).
- Change line 2 to
return 0
- Observe there is now a type error complaining about the incorrect int return value.
- Fix the bug by updating the code again to
return "0"
- Observe that the error is still displayed, even though there is no error now in the Mypy Type Checker output tab.
- Close file and reopen, observe that the error is now gone.