mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Override function signatures in user skeletons
This commit is contained in:
@@ -31,4 +31,7 @@ public interface PyTypeProvider {
|
||||
|
||||
@Nullable
|
||||
PyType getContextManagerVariableType(PyClass contextManager, PyExpression withExpression, TypeEvalContext context);
|
||||
|
||||
@Nullable
|
||||
PyType getCallableType(@NotNull Callable callable, @NotNull TypeEvalContext context);
|
||||
}
|
||||
|
||||
@@ -102,6 +102,12 @@ public class PyTypeProviderBase implements PyTypeProvider {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public PyType getCallableType(@NotNull Callable callable, @NotNull TypeEvalContext context) {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void registerSelfReturnType(String classQualifiedName, Collection<String> methods) {
|
||||
registerReturnType(classQualifiedName, methods, mySelfTypeCallback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user