DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
1.02k stars 19 forks source link

Variables narrowed to Never with an explicit type are highlighted as types #398

Closed ValdezFOmar closed 3 months ago

ValdezFOmar commented 3 months ago

Now is the opposite of https://github.com/DetachHead/basedpyright/issues/254

image

DetachHead commented 3 months ago

man i swear i had a test for this...

not sure how to fix it because as far as i can tell theres no easy way to differentiate between an instance of Never and the Never type itself :(

ValdezFOmar commented 3 months ago

I will take a look at it and see if I can do something.

DetachHead commented 3 months ago

i think i got it in #398