3 ms·
I’ve started using VS Code with Python recently. There was an unpleasant surprise in that Pylance silently pulls unvetted third-party typings with not even an
by strogonoff 5y ago
I’ve started using VS Code with Python recently.
There was an unpleasant surprise in that Pylance silently pulls unvetted third-party typings with not even an opt-out—resulting in typing mismatches across versions, in addition to generally exhibiting too implicit of a behavior for my taste. (Coming from Python pre-typings originally, I have grown to appreciate TypeScript’s model where user is asked to install typings explicitly if missing.)
So I ended up using VS Code with Python extension but Pylance overridden as disabled, and with mypy and flake8 installed in your environment (and enabled in VSC) it actually works fairly well, showing errors and warnings from both.
Can’t remember whether I had to edit settings.json or not, but it took some time to hunt down relevant settings.