Closed as not planned
Description
Type: Bug
Behaviour
Expected vs. Actual
Expected: mypy errors are found.
Actual: mypy reports no errors.
Steps to reproduce:
- Introduce a deliberate type error
- Run
mypy <filepath>
on the command line to confirm that the problem is genuine - Inspect the Python Output panel to see that you get nothing:
##########Linting Output - mypy########## Success: no issues found in 1 source file
Mypy version: mypy 0.990 (compiled: yes)
Edit: I have tested and linting works for mypy 0.981
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.6
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServer
setting: Pylance
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
> /opt/conda/bin/conda run -n env_name --no-capture-output python /net/~/.vscode/extensions/ms-python.python-2022.16.1/pythonFiles/get_output_via_markers.py /net/~/.vscode/extensions/ms-python.python-2022.16.1/pythonFiles/linter.py -m mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --show-error-codes --explicit-package-bases --namespace-packages ./path/to/file.py
cwd: .
##########Linting Output - mypy##########
Success: no issues found in 1 source file
User Settings
condaPath: "<placeholder>"
languageServer: "Pylance"
linting
• mypyArgs: "<placeholder>"
• mypyEnabled: true
formatting
• autopep8Args: "<placeholder>"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
Extension version: 2022.16.1
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:16:26.920Z)
OS version: Linux x64 3.10.0-1160.76.1.el7.x86_64
Modes:
Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz (4 x 2599) |
GPU Status | 2d_canvas: unavailable_software canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: disabled_software multiple_raster_threads: enabled_on opengl: disabled_off rasterization: disabled_software raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software webgpu: disabled_off |
Load (avg) | 1, 3, 3 |
Memory (System) | 7.62GB (1.80GB free) |
Process Argv | --unity-launch --crash-reporter-id 4cb3165e-6680-471f-992f-0c1e623756f7 |
Screen Reader | no |
VM | 100% |
DESKTOP_SESSION | 1-gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | 1-gnome |
XDG_SESSION_TYPE | x11 |