function parameter of type Literal[-1] gives incorrect error #260
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Pylance language server 2020.8.1 (pyright 0916fb9e)
Expected behaviour
No error for foo(-1) above
Actual behaviour
"int" cannot be assigned to type "Literal[-1]"Pylance
The text was updated successfully, but these errors were encountered: