Files
openide/python/testData/resolve/RestDocstringCvarNameResolvesToInheritedClassAttribute.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
161 B
Python

class Parent:
"""
:cvar attr: parent attr doc
"""
attr = 0
class Child(Parent):
"""
:cvar attr: child attr doc
<ref>
"""