Weird error message when setting class variable of the wrong type (not in an instance) #6106
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
There is something weird with Pyright's error message when trying to set an unannotated class variable on the class itself when using an incorrect type.
Code or Screenshots
The result is:
The error on
/tmp/huh.py:12:6
is unexpected.VS Code extension or command-line
Tested using pyright command line tool version 1.1.300.
The text was updated successfully, but these errors were encountered: