Fixed false positive attribute assignment warning for classes that inherit '__slots__', but don't define their own slots (PY-10158)

This commit is contained in:
Andrey Vlasovskikh
2013-09-19 22:04:28 +04:00
parent df135fc4fb
commit bc2140236b
5 changed files with 24 additions and 10 deletions
@@ -181,6 +181,12 @@ public interface PyClass extends PsiNameIdentifierOwner, PyStatement, NameDefine
boolean isSubclass(@NotNull String superClassQName);
/**
* Returns the aggregated list of names defined in __slots__ attributes of the class and its ancestors.
*/
@Nullable
List<String> getSlots();
/**
* Returns the list of names in the class' __slots__ attribute, or null if the class
* does not define such an attribute.
@@ -188,7 +194,7 @@ public interface PyClass extends PsiNameIdentifierOwner, PyStatement, NameDefine
* @return the list of names or null.
*/
@Nullable
List<String> getSlots();
List<String> getOwnSlots();
@Nullable
String getDocStringValue();