KEMBAR78
Mypy linting errors should not be displayed if they are located in other Python files · Issue #10190 · microsoft/vscode-python · GitHub
Skip to content

Mypy linting errors should not be displayed if they are located in other Python files #10190

@AWhetter

Description

@AWhetter

Please note that this issue is based on a previous issue for the same problem: #9496
I've tried each version of the Python extension that was released after this original issue was fixed, and I see the error in each version.

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar): 2020.2.63072
  • OS and version: Arch Linux
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: mypy
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): jedi
  • Value of the python.languageServer setting: Microsoft

Expected behaviour

The Python code editor only highlights errors in the file in question.

Actual behaviour

The Python code editor wrongly highlights unrelated errors found in other files that Mypy checked.

Steps to reproduce:

See #9496

I am testing with mixology, which can be cloned from here: https://github.com/sdispater/mixology
I view the files mixology/partial_solution.py, mixology/version_solver.py, and mixology/package_source.py. There may be more.

Logs

##########Linting Output - mypy##########
mixology/package.py:17:5: error: Type signature has too few arguments
Found 1 error in 1 file (checked 1 source file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-lintingbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions