Reputation: 29
Help solve the problem with the type hints. When I want to override a class parameter or method I get a suggestion from IntelliSense(Pylance) When I choose a hint (because it suits me) editor itself adds a type hint. I went through all the settings and can't find a solution to the problem.
Example:
typing show_change_link after hint choice i get show_change_link: bool
I'm not interested in these autocomplete functions or autocomplete parameter types.
When languageServer Jedi everything works fine and does not add this unnecessary nonsense.
Upvotes: 1
Views: 4616
Reputation: 9219
This is a new feature added in the July update of Python extensions. You can add the following codes to your settings.json to close it:
“python.analysis.inlayHints.functionReturnTypes”: false,
“python.analysis.inlayHints.variableTypes”: false,
Upvotes: 1