mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Django forms and formset fix: PyCollectionTypeImpl fix return type to support myElementsTypes
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.jetbrains.python.psi.types;
|
||||
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.jetbrains.python.psi.PyCallSiteExpression;
|
||||
import com.jetbrains.python.psi.PyClass;
|
||||
import com.jetbrains.python.psi.PyPsiFacade;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -44,6 +45,12 @@ public class PyCollectionTypeImpl extends PyClassTypeImpl implements PyCollectio
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public PyType getCallType(@NotNull final TypeEvalContext context, @Nullable final PyCallSiteExpression callSite) {
|
||||
return getReturnType(context);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public List<PyType> getElementTypes(@NotNull TypeEvalContext context) {
|
||||
|
||||
Reference in New Issue
Block a user