VS Code Language Server Linting Incorrect

433 Views Asked by At

VS Code (and in particular the MS Python Language Server) shows lot's of unnecessary errors. These appear as it lints while I type, but then they persist afterwards.

For example, after typing self.var = var

[Python] 's' used before definition [use-before-def]
[Python] 'se' used before definition [use-before-def]
[Python] 'sel' used before definition [use-before-def]

These linter errors are left on the word self.

I've tried disabling autosave but it didn't help

I don't want to have to disable the server since I like IntelliCode, which requires it

Is there any way to either fix the issue or just mute these errors?

0

There are 0 best solutions below