You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env python3.7
from __future__ import annotations
a:int = "a"
not_declared_var
##########Linting Output - mypy##########
mypy /home/rea/code/rfs/provider.pyi
provider.pyi:10: error: Incompatible types in assignment (expression has type "str", variable has type "int")
provider.pyi:11: error: Name 'not_declared_var' is not defined
##########Linting Output - pylint##########
************* Module provider
11,0,error,E0602:Undefined variable 'not_declared_var'
------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
Show on problem tab:
E0602:Undefined variable 'not_declared_var'
Output from Console under the Developer Tools panel
workbench.main.js:sourcemap:4103 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///usr/share/code/resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///home/rea/.vscode/extensions/magicstack.magicpython-1.0.12/grammars/MagicPython.tmLanguage
Environment data
python37)Actual behavior
mypy and pylint are executed and show errors on the output/python tab, but just the pylint errors are shown on the problems tab.
Expected behavior
problems tab shows both pylint and mypy errors
Steps to reproduce:
dnf install python37on Fedora)sudo python3.7 -m pip install --pre -U mypy pylintLogs
Code for test
UPDATE: save file as
name.pyiShow on problem tab:
Output from
Consoleunder theDeveloper ToolspanelMy config (relevant parts):
User
Workspace
content of
/usr/bin/mypy3.7:I've looked in #343 and #1440 also, but no luck.