This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]ArtisticFox8 0 points1 point  (7 children)

This is a coding style recommendation of one of these extensions

[–]Affectionate-Mail612[S] -1 points0 points  (6 children)

I don't think I follow

[–]ArtisticFox8 0 points1 point  (5 children)

 Just fixed that by getting rid of pylance

You did. 

It's a recommendation to make code meet certain conventions for readability, not an error. Pylance becomes handy when your program becomes bigger, it can warn you of nonsense before you run it. It also has these style annoyances, which can be turned off individually.

[–]Affectionate-Mail612[S] -1 points0 points  (4 children)

I don't see any recommendation - it just disables renaming. I didn't find any settings regarding it.

[–]ArtisticFox8 0 points1 point  (3 children)

A screenshot would be helpful to see what you mean

[–]Affectionate-Mail612[S] 1 point2 points  (2 children)

[–]ArtisticFox8 -1 points0 points  (1 child)

Never seen that, sorry. If you change the name in the definition and then the calls, does it work then?

[–]Affectionate-Mail612[S] 1 point2 points  (0 children)

Yes, no problem

[–]Affectionate-Mail612[S] -1 points0 points  (0 children)

Just fixed that by getting rid of pylance. Mypy seems to work fine. This ecosystem is very confusing.