*args
positional parameter dropped out and became a phantom when using Concatenate
to shorten parameters
#9630
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
When using
typing.Concatenate
to reduce parameters (just like a part of partial function), I found the positional parameter*args
(or any other name) dropped out of the parameter list after aConcatenate
operation and become a phantom in pyright, which is not printed in parameter type while type checking of the*args
still works.I also tested the code in pylance but the error is even not reported.
Code or Screenshots
View in pyright-play.net
VS Code extension or command-line
Tested in:
The text was updated successfully, but these errors were encountered: