Assigning a non-string to Class.__name__
gives a confusing error
#3960
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
Setting
Class.__name__
to something that is not a string gives a confusing error.To Reproduce
Expected behavior
I expected the error to be something like:
Screenshots or Code
VS Code extension or command-line
I'm running pyright 1.1.271 from CLI.
Additional context
N/A
The text was updated successfully, but these errors were encountered: