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
{{ message }}
Repository navigation
IDE: references and call hierarchy for overridden methods #2490
In the IDE, when navigating to references (via Go to references or Show Call Hierarchy), I would expect it to also show references of the overridden base method. While it's not a direct call, I'd prefer to show it all possible references.
fromtypingimportProtocol, override, castclassFoo(Protocol):
deffoo(self): passclassFooImpl(Foo):
deffoo(self): passdefa():
cast(Foo, None).foo() # not counted as a reference for FooImpl.foodefb():
cast(FooImpl, None).foo()
classBar():
defbar(self): passclassBarChild(Bar):
@overridedefbar(self): pass# not counted as a reference for FooImpl.foodefc():
cast(Bar, None).bar()
defd():
cast(BarChild, None).bar()
Screenshot with Pyrefly:
Screenshot with Pylance:
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
changed the title [-]IDE: references and call hierarchy for overriden methods[/-][+]IDE: references and call hierarchy for overridden methods[/+]on Mar 3, 2026
Activity
[-]IDE: references and call hierarchy for overriden methods[/-][+]IDE: references and call hierarchy for overridden methods[/+]asukaminato0721 commentedon Apr 18, 2026
related #2687