mirror of
https://github.com/ankitects/anki.git
synced 2026-09-10 07:29:19 -04:00
## Linked issue Closes #5304 ## Summary This configures the official VS Code extension for mypy to run in daemon mode. ## How to test - Install the `ms-python.mypy-type-checker` extension and **switch to the pre-release version** (This is important for daemon mode to work according to my tests). - Copy .vscode.dist/settings.json to .vscode/ - Restart the MyPy server using the "MyPy: Restart server" command. - Edit any Python code to add a typing error and confirm the error is visually reported. (Note: initial mypy run might take a few seconds). <img width="1305" height="361" alt="image" src="https://github.com/user-attachments/assets/e8f431b0-b2ae-483d-b305-cf19c9dd013d" />