I'm trying to modify my settings.json file for VSCode to ignore missing imports for my own scripts. As i've learnt I have to set "python.analysis.useImportHeuristic" to true. Code says it is an unknown configuration setting but as long as I've searched I haven't seen any info about it. What am I missing?
Asked
Active
Viewed 4,207 times
2 Answers
9
insert this:
# type: ignore
paste it at the top of the file to ignore the file
paste it at the end of a line to ignore the line
Reference: https://www.reddit.com/r/VisualStudioCode/comments/i3mpct/comment/g5bkx9u/

Jia Huei
- 340
- 3
- 7
3
Add this to your settings.json:
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingImports": "none"
}

Knemay
- 350
- 1
- 6
- 12