Regression in type inference when using list comprehension in a loop #4459
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
Pyright can't infer correct type if I use list comprehension in a loop. Regression introduced in 1.1.286.
Expected behavior
No errors reported.
Screenshots or Code
VS Code extension or command-line
VSC Pylance since v2023.1.11 and up to v2023.1.21, VSC Pyright since 1.1.286 and up to 1.1.289.
The text was updated successfully, but these errors were encountered: