Files
openide/python/testData/resolve/RestDocstringVarNameResolvesToInheritedInstanceAttribute.py
Irina.Fediaeva 181edc5caa PY-50788: Correct resolve for inherited docstring attribute names
Now during resolve if there is no class/instance attribute with appropriate name explicitly in the class, we will try to find it in the parent classes and resolve there.

GitOrigin-RevId: 52ab5f0ad63cba187457ba3db6107997ede33dee
2022-10-03 13:21:34 +00:00

13 lines
190 B
Python

class Parent:
"""
:var attr: parent attr doc
"""
def __init__(self):
self.attr = 0
class Child(Parent):
"""
:var attr: child attr doc
<ref>
"""