mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
Inline __slots__ invalidation logic into PyClass (PY-29268)
This commit is contained in:
@@ -266,7 +266,13 @@ public interface PyClass extends PsiNameIdentifierOwner, PyStatement, PyDocStrin
|
||||
boolean isSubclass(@NotNull String superClassQName, @Nullable TypeEvalContext context);
|
||||
|
||||
/**
|
||||
* Returns the aggregated list of names defined in __slots__ attributes of the class and its ancestors.
|
||||
* Returns the aggregated list of names defined in `__slots__` attributes of the class and its ancestors.
|
||||
* <p>
|
||||
* Returned value is `null` if class or at least one of its ancestor does not follow the next conditions:
|
||||
* <ul>
|
||||
* <li>it should be a new style class</li>
|
||||
* <li>its `__slots__` should exist and should not contain `__dict__`</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param context (will be used default if null)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user