Show more details about types of functions (PY-10413)

This commit is contained in:
Andrey Vlasovskikh
2013-08-01 15:21:00 +04:00
parent 08a4fe32d0
commit bb34310282
13 changed files with 152 additions and 46 deletions
@@ -1,5 +1,6 @@
package com.jetbrains.python.psi.types;
import com.intellij.openapi.util.Pair;
import com.jetbrains.python.psi.PyQualifiedExpression;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -31,8 +32,8 @@ public interface PyCallableType extends PyType {
/**
* Returns the list of parameter types.
*
* @return list of positional parameters or null if not applicable.
* @return list of (name, type) pairs or null if not applicable. Name and type in pair may be null.
*/
@Nullable
List<PyType> getParameterTypes(@NotNull TypeEvalContext context);
List<Pair<String, PyType>> getParameters(@NotNull TypeEvalContext context);
}