mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
Removed unnecessary call site dependency for evaluating return type of a property
This commit is contained in:
@@ -303,9 +303,7 @@ public class PyPropertyDefinitionInspection extends PyInspection {
|
||||
hasReturns = returnStatements.length > 0;
|
||||
}
|
||||
else {
|
||||
PyReferenceExpression callSite = being_checked instanceof PyReferenceExpression ? (PyReferenceExpression) being_checked : null;
|
||||
final PyType type = callSite != null ? callable.getCallType(myTypeEvalContext, callSite)
|
||||
: myTypeEvalContext.getReturnType(callable);
|
||||
final PyType type = myTypeEvalContext.getReturnType(callable);
|
||||
hasReturns = !(type instanceof PyNoneType);
|
||||
}
|
||||
if (allowed ^ hasReturns) {
|
||||
|
||||
Reference in New Issue
Block a user