Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Bug] Class method 'self' looses special self scope with added type annotation #209
Comments
|
Workaround: the new |
Got send here from 'vscode-python' microsoft/vscode-python#11593
Without type annotation everything is just fine.

When a type annotation is added to the

selfparameter the special scope forselfis missing.Steps to reproduce:
Paste the following code into a *.py file and inspect the
selfparameter with the developer token inspect tool. Like in the screenshots above.The
selfparameter of thebad_funcshould show the actual scopes and theselfparameter of thegood_funcshould show the expected scopes.