bifrostlab / llm-assistant

Multifunctional LLM Assistant for Discord
8 stars 6 forks source link

chore(devcontainer): add mypy extension into devcontainer #43

Closed samhwang closed 7 months ago

samhwang commented 7 months ago

This is an issue arised when I'm reviewing #42 . Apparently, by default the Python extension is VSCode runs on Pylance, which by itself runs on Pyright, and by default does not honor all Mypy rules and plugins and starts giving out false positives. This is a documented issue. See https://github.com/microsoft/pylance-release/issues/290

This PR will install mypy into the devcontainer's vscode, which will honor mypy rules.

See ma, no type errors! image