Override function signatures in user skeletons

This commit is contained in:
Andrey Vlasovskikh
2013-08-05 16:04:27 +04:00
parent dd431693ff
commit ab034cf35a
5 changed files with 32 additions and 0 deletions
@@ -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);
}