Remove redundant interfaces from the PyFunction declaration

PsiNameIdentifierOwner extends PsiNamedElement, and PyCallable extends
PyTypedElement.

GitOrigin-RevId: ef395e6125077c7853e3b5a9e43f7f2b9ff2542e
This commit is contained in:
Mikhail Golubev
2023-01-31 16:44:20 +02:00
committed by intellij-monorepo-bot
parent 566a98e5ea
commit 97f36e10de

View File

@@ -18,9 +18,9 @@ import java.util.List;
/**
* Function declaration in source (the {@code def} and everything within).
*/
public interface PyFunction extends PsiNamedElement, StubBasedPsiElement<PyFunctionStub>, PsiNameIdentifierOwner, PyCompoundStatement, PyCallable,
PyDocStringOwner, ScopeOwner, PyDecoratable, PyTypedElement, PyStatementListContainer,
PyPossibleClassMember, PyTypeCommentOwner, PyAnnotationOwner {
public interface PyFunction extends StubBasedPsiElement<PyFunctionStub>, PsiNameIdentifierOwner, PyCompoundStatement,
PyDecoratable, PyCallable, PyStatementListContainer, PyPossibleClassMember,
ScopeOwner, PyDocStringOwner, PyTypeCommentOwner, PyAnnotationOwner {
PyFunction[] EMPTY_ARRAY = new PyFunction[0];
ArrayFactory<PyFunction> ARRAY_FACTORY = count -> count == 0 ? EMPTY_ARRAY : new PyFunction[count];