AssertionError assert file not in self.flushed_files
on master and release-1.15
#18730
Labels
assert file not in self.flushed_files
on master and release-1.15
#18730
Crash Report
Using dmpy on mypy release 1.15 and on master, adjusting a specific line that changes the return type to not match the annotated one results in an internal error. This is not an issue on mypy 1.10.
Traceback
To Reproduce
I was unable to reproduce this error in an isolated environment after trying, though I could try more with multi-file setups if needed. For context, the section of code that when modified causes this crash looks like.
Your Environment
dmypy run -- <directory> -v
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: