Static analysis result in case of zip(typing.NamedTuple) is different from in case of zip(tuple) #1658
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
Pylance v2021.8.0
Expected behaviour
No error in following case when use normal tuple:
And Pylance analyzes the type of variables:
Actual behaviour
Error occured:
Tuple size mismatch: expected 3 but received 1 Pylance(reportGeneralTypeIssues) [11, 5]
And Pylance analyzes the type of variables:
This is cleary false-positive behavior.
The text was updated successfully, but these errors were encountered: