mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed a stupid regression in getType() introduced in 216282.
This commit is contained in:
@@ -148,7 +148,7 @@ public class PyCallExpressionImpl extends PyElementImpl implements PyCallExpress
|
||||
PyExpression callee = getCallee();
|
||||
if (callee instanceof PyReferenceExpression) {
|
||||
ResolveResult[] targets = ((PyReferenceExpression)callee).multiResolve(false);
|
||||
if (targets.length == 0) {
|
||||
if (targets.length > 0) {
|
||||
PsiElement target = targets[0].getElement();
|
||||
if (target instanceof PyClass) {
|
||||
return new PyClassType((PyClass) target, false); // we call a class name, that is, the constructor, we get an instance.
|
||||
|
||||
Reference in New Issue
Block a user