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): python3.12
Code Snippet
classCachedBug:
@cached_propertydefx(self)->int:
return0@cached_propertydefy(self)->str:
return''@cached_propertydefz(self)->Self:
returnself.__class__()
@cached_propertydefa(self)->'CachedBug':
returnCachedBug()
defusage():
bug=CachedBug()
#x is int,okx=bug.x#y is str,oky=bug.y#z is Any,not okz=bug.z#a is CachedBug,oka=bug.a
Repro Steps
use vscode open python file
Expected behavior
pylance can know "z" is CachedBug type
Actual behavior
"z" is Any type
Logs
XXX
The text was updated successfully, but these errors were encountered:
Environment data
Code Snippet
Repro Steps
Expected behavior
pylance can know "z" is CachedBug type
Actual behavior
"z" is Any type
Logs
The text was updated successfully, but these errors were encountered: