When enabling mypy in vscode ("python.linting.mypyEnabled": true,
),
then any manual mypy commands become very slow and CPU intensive (10s before vs 3min after).
It seems like the two mypy processes should be independent, or even aid each other through a cache, but they seem to be in each other's way.
I noticed that from a clean venv it doesn't happen for a while. Only after the vscode has run mypy do the manual mypy commands become slow, even when vscode is not running anymore.
The only related question I could find was this.