microsoft / microsoft/vscode-mypy

`--ignore-missing-imports` not working for all imports

Open
#208 14 comments 3 reactions 1 assignee View on GitHub

@karthiknadig is already working on this.

Since Nov 3, 2023.

bug needs PR
Dominant language
Python
Stars
150
Forks
39
Avg merge
21h 45m
Merged PRs (30d)
8

Description

Using settings:

"mypy-type-checker.args": ["--ignore-missing-imports"],

Error still occurs for the requests package in this code snippet:

import requests
from bs4 import BeautifulSoup

response = requests.get("https://www.google.com", timeout=5)
soup = BeautifulSoup(response.text, "html.parser")

In IDE interface:

image

When executing from the CLI with the same flag, functions as expected:

C:\DT\General Programming>mypy scratchpad.py --ignore-missing-imports 
Success: no issues found in 1 source file

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.