PY-50788: Correct resolve for inherited docstring attribute names
authorIrina.Fediaeva <irina.fediaeva@jetbrains.com>
Sat, 24 Sep 2022 14:58:29 +0000 (17:58 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 3 Oct 2022 13:21:34 +0000 (13:21 +0000)
commit181edc5caa16dd439df71b6135fb89de0d293c56
treeb0b081a20fa4aadec13e4952b6d9836864a0909e
parent50a0dbc5920093fce6f1f6a2f9fa339f1108ac52
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
python/python-common-tests/com/jetbrains/python/PyCommonResolveTest.java
python/python-psi-impl/src/com/jetbrains/python/documentation/docstrings/DocStringParameterReference.java
python/testData/resolve/NumpyDocstringAttributeNameResolvesToInheritedClassAttribute.py [new file with mode: 0644]
python/testData/resolve/NumpyDocstringAttributeNameResolvesToInheritedInstanceAttribute.py [new file with mode: 0644]
python/testData/resolve/RestDocstringCvarNameResolvesToInheritedClassAttribute.py [new file with mode: 0644]
python/testData/resolve/RestDocstringIvarNameResolvesToInheritedInstanceAttribute.py [new file with mode: 0644]
python/testData/resolve/RestDocstringVarNameResolvesToInheritedClassAttribute.py [new file with mode: 0644]
python/testData/resolve/RestDocstringVarNameResolvesToInheritedInstanceAttribute.py [new file with mode: 0644]