Callable with two parameters, called with a starred pair, "Expected 1 more positional argument" #2083
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
In the code snippets below, the call to
g
is well typed.Actual behaviour
In the code snippets below, the call to
g
is diagnosed as "Expected 1 more positional argument".Logs
Python Language Server Log (analyzing the first snippet below)
Code Snippet / Additional information
In fact, even simpler:
Both programs run fine.
Note that in both examples, the tuple is statically declared to have the correct number and type of elements to function as g's starred argument.
The actual case where this arises is, of course, much more complex (and a part of a proprietary code base).
The text was updated successfully, but these errors were encountered: