Auto completion tooltip displays "cls" (class) parameter for class functions #7292
Labels
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi enabled"python.jediEnabled": true
Expected behaviour
Auto completion should skip "cls" (class) parameter for classmethods in autocompletion tooltip, just like it skips the "self" parameter
Actual behaviour
Parameter "cls" is shown alongside the normal parameter list, causeing an off-by-one error for the highlighted parameters in the tooltip, because it doesn't need to be specified in the parameter lsit when calling a class function (same as "self" does not need to be put into the parameter list)
Steps to reproduce:
Call the class method
MyClass.foo("foo", "bar")
Autocomplete tooltip should show only
param1
andparam2
, but notcls
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: