After being changed to another string the first element of a list[str], pylance infers it as None #992
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
Foreword
I have just finished to (strictly) type several thousands of python lines of code using pylance.
It's a great tool that enforces to make the code more clearer and maintainable.
I encountered some issues, some were bugs, some borderline cases.
I want to thank Erik and Jake for the reactivity and for the very clear answers.
This is probably the last issue, a bit surprising.
Expected behaviour
No problem reported.
Actual behaviour
A problem reported. See example below
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: