Django forms and formset fix: PyCollectionTypeImpl fix return type to support myElementsTypes

This commit is contained in:
Ilya.Kazakevich
2016-02-17 17:04:03 +03:00
parent 6caae835c9
commit 02913b8908
@@ -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) {