You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): Python 3.12.2
Code Snippet
classA:
deff(self, a: int, b: str) ->None:
passclassB(A):
deff(self, a, b):
returnsuper().f(a, b)
Repro Steps
When I ask VS Code to autocomplete/generate the code for f in class B (i.e., I type def f and then let it autocomplete) no types are included. (They were included on Pylance 2024.9.2.)
Expected behavior
The following used to be generated (specifically what follows after def f):
classB(A):
deff(self, a: int, b: str) ->None:
returnsuper().f(a, b)
Actual behavior
Now this is generated (specifically what follows after def f):
classB(A):
deff(self, a, b):
returnsuper().f(a, b)
Logs
Currently omitted due to all the personal path information I don't want to include. Can be included if needed.
The text was updated successfully, but these errors were encountered:
It’s likely that you're in the treatment group of an experiment we're running, which disables type annotations in completions when type checking mode is set to off. You should be able to see the types if you switch to basic or strict mode by adding the following to your settings.json.
{
"python.analysis.typeCheckingMode": "basic",
}
Could you share your thoughts on this change? We're gathering user feedback to help us decide on the next steps. Thanks!
Thank you for the quick reply! Enabling basic did work. In my current workflow I use mypy for all type checking, and like the option of not being forced to use a second type checker.
Environment data
Code Snippet
Repro Steps
Expected behavior
The following used to be generated (specifically what follows after def f):
Actual behavior
Now this is generated (specifically what follows after def f):
Logs
Currently omitted due to all the personal path information I don't want to include. Can be included if needed.
The text was updated successfully, but these errors were encountered: