Return weak types for target expressions if we are not allowed to switch from stubs to AST

This commit is contained in:
Andrey Vlasovskikh
2013-06-10 19:20:17 +04:00
parent 70428020ef
commit 2b025f6901
@@ -124,7 +124,11 @@ public class PyTargetExpressionImpl extends PyPresentableElementImpl<PyTargetExp
if (type instanceof PyNoneType) {
return null;
}
return type;
if (type instanceof PyFunctionType) {
return type;
}
// We are unsure about the type since it may be inferred from the stub based on incomplete information
return PyUnionType.createWeakType(type);
}
return null;
}