Regression: Literal[False]
and Literal[True]
are no longer merged into type bool
#5421
Labels
Literal[False]
and Literal[True]
are no longer merged into type bool
#5421
Describe the bug
Up until pyright 1.1.314, the following code was valid without error, but now in 1.1.316 it is erroring.
To Reproduce
Run pyright on the below code, and you will get the following error:
Expected behavior
No type errors should be thrown.
Code or Screenshots
VS Code extension or command-line
This is happening in both the VS Code extension and the pyright cli; both are 1.1.316.
As I said above, this is a recent regression since the same code was working fine back in 1.1.314.
The text was updated successfully, but these errors were encountered: