mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-4813 Performance tests fix
This commit is contained in:
@@ -282,7 +282,10 @@ public class PyTypingTypeProvider extends PyTypeProviderBase {
|
||||
private static PyFunctionType getOverriddenFunctionType(@NotNull PyFunction function, @NotNull TypeEvalContext context) {
|
||||
final PyFunction overriddenFunction = getOverriddenFunction(function, context);
|
||||
if (overriddenFunction != null) {
|
||||
return (PyFunctionType)context.getType(overriddenFunction);
|
||||
PyType type = context.getType(overriddenFunction);
|
||||
if (type instanceof PyFunctionType) {
|
||||
return (PyFunctionType)context.getType(overriddenFunction);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user