From ea3333f70c205177b49ed7a7b82f1fda8a4a322d Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Thu, 21 Aug 2014 14:49:56 +0400 Subject: [PATCH] Fixed searching for PyAnnotation stub if PyFunction is a stub --- python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java index d7c29fe4a830..86f84abb7fb6 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java @@ -571,7 +571,7 @@ public class PyFunctionImpl extends PyPresentableElementImpl imp @Override public PyAnnotation getAnnotation() { - return findChildByClass(PyAnnotation.class); + return getStubOrPsiChild(PyElementTypes.ANNOTATION); } @NotNull