In your settings.json file, add a new line with the following setting:

{
  "python.analysis.typeCheckingMode": "basic"
}