Use list of types for element types instead of array in PyTupleType

This commit is contained in:
Semyon Proshev
2016-10-13 21:28:19 +03:00
committed by Semyon Proshev
parent 0f35d93245
commit 740ef94bcf
10 changed files with 55 additions and 71 deletions
@@ -27,6 +27,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.List;
/**
* @author yole
@@ -53,7 +54,7 @@ public abstract class PyPsiFacade {
public abstract PyType createUnionType(@NotNull Collection<PyType> members);
@Nullable
public abstract PyType createTupleType(@NotNull Collection<PyType> members, @NotNull PsiElement anchor);
public abstract PyType createTupleType(@NotNull List<PyType> members, @NotNull PsiElement anchor);
@Nullable
public abstract PyType parseTypeAnnotation(@NotNull String annotation, @NotNull PsiElement anchor);