mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Fix crash in dmypy when packages are removed during dmypy run

Open koen-boost opened this issue 7 months ago • 1 comments

At our company we use mypy extensively on quite a large codebase. More often than not, after switching branches dmypy will crash, because it still expects an import of a package although the package is gone in the new branch.

I did not manage to write a unit test for this, but verified it on our codebase and it solved the issue.

koen-boost avatar Jun 04 '25 08:06 koen-boost

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] avatar Jun 04 '25 08:06 github-actions[bot]