From e3e172d42f09beda07aa7cfda8487f4906fa4b27 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Wed, 12 Dec 2012 14:37:05 +0400 Subject: [PATCH] fixed PY-8216 Create parameter for reference: disable intention for unresolved decorator --- .../python/inspections/PyUnresolvedReferencesInspection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/inspections/PyUnresolvedReferencesInspection.java b/python/src/com/jetbrains/python/inspections/PyUnresolvedReferencesInspection.java index 0d3124443fd7..58b0d2e8e1a0 100644 --- a/python/src/com/jetbrains/python/inspections/PyUnresolvedReferencesInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyUnresolvedReferencesInspection.java @@ -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)); } }