mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Show more details about types of functions (PY-10413)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user