mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Return an instance type provided by reference type provider for callees
This commit is contained in:
@@ -174,6 +174,9 @@ public class PyCallExpressionImpl extends PyElementImpl implements PyCallExpress
|
||||
}
|
||||
final PyType providedType = PyReferenceExpressionImpl.getReferenceTypeFromProviders(target, context, this);
|
||||
if (providedType != null) {
|
||||
if (providedType instanceof PyClassType) {
|
||||
return ((PyClassType)providedType).toInstance();
|
||||
}
|
||||
return providedType;
|
||||
}
|
||||
if (target instanceof Callable) {
|
||||
|
||||
Reference in New Issue
Block a user