Skip to content

Errors remain after being fixed, until file is reopened #130

Closed
@markedwards

Description

@markedwards

(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:

  1. Create a file with:
def temp() -> str:
    return "0"
  1. Observe there are no type errors (as expected).
  2. Change line 2 to return 0
  3. Observe there is now a type error complaining about the incorrect int return value.
  4. Fix the bug by updating the code again to return "0"
  5. Observe that the error is still displayed, even though there is no error now in the Mypy Type Checker output tab.
  6. Close file and reopen, observe that the error is now gone.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions