mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Return weak types for target expressions if we are not allowed to switch from stubs to AST
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user