mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-8216 Create parameter for reference: disable intention for unresolved decorator
This commit is contained in:
@@ -452,7 +452,8 @@ public class PyUnresolvedReferencesInspection extends PyInspection {
|
||||
actions.add(new UnresolvedRefCreateFunctionQuickFix(callExpression, refex));
|
||||
}
|
||||
PyFunction parentFunction = PsiTreeUtil.getParentOfType(element, PyFunction.class);
|
||||
if (parentFunction != null) {
|
||||
PyDecorator decorator = PsiTreeUtil.getParentOfType(element, PyDecorator.class);
|
||||
if (parentFunction != null && decorator == null) {
|
||||
actions.add(new UnresolvedReferenceAddParameterQuickFix(refname));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user