Closed LordAro closed 20 hours ago
Once the code has finished running, you might see the cursor reappear or the output continue in the terminal.
If you're seeing this output and the code doesn't appear to be progressing, it's possible that:
The code has gotten stuck in an infinite loop. The code is waiting for an event that's not happening. There's a bug in your code that's preventing it from completing. You'll need to investigate the code further to determine why the cursor is hidden and why the code is not finishing.
Well that's pretty clearly some AI nonsense. Shoo.
This is addressed in pyright 1.1.381.
Describe the bug
When attempting to assign an optional union type to the same (non optional) union type, the output from pyright is a very unclear
Cannot assign to attribute "a" for class Foo*
with no other information.The error message gets clearer with an additional diagnostic message if I remove the union (second code example), though the
cannot assign to ... Outer*
stuff still feels unclear to me.Just to clarify, I'm not debating there's an issue here, just that the error message is unclear and does not help me resolve anything :)
Code or Screenshots
VS Code extension or command-line Command line. 1.1.379