Recognize missing brackets for assignment expression #1838
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
It would be nice if
Pylance
could recognize that the example below would result in aSyntaxError
.--
To be valid, brackets around the assignment expression are necessary. This only applies to if expressions. Normal if statements will work, even without them.
--
Tested with Pylance: v2021.9.2
The text was updated successfully, but these errors were encountered: