diff --git a/python/src/com/jetbrains/python/psi/PyFunction.java b/python/src/com/jetbrains/python/psi/PyFunction.java index 2e7ddefce097..87d8689a12ad 100644 --- a/python/src/com/jetbrains/python/psi/PyFunction.java +++ b/python/src/com/jetbrains/python/psi/PyFunction.java @@ -52,7 +52,7 @@ extends @Nullable PyType getReturnTypeFromDocString(); - + @Nullable String getDocStringValue(); diff --git a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java index 6a7fba37b020..8c076b52bf1d 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java @@ -314,7 +314,7 @@ public class PyFunctionImpl extends PyPresentableElementImpl imp PyReferenceExpression warningClass = callExpression.getArgument(1, PyReferenceExpression.class); if (warningClass != null && (PyNames.DEPRECATION_WARNING.equals(warningClass.getReferencedName()) || PyNames.PENDING_DEPRECATION_WARNING.equals(warningClass.getReferencedName()))) { - return PyUtil.strValue(callExpression.getArguments() [0]); + return PyUtil.strValue(callExpression.getArguments()[0]); } } } @@ -538,10 +538,10 @@ public class PyFunctionImpl extends PyPresentableElementImpl imp if (targetExpressionStub.getInitializerType() == PyTargetExpressionStub.InitializerType.CallExpression) { final PyQualifiedName qualifiedName = targetExpressionStub.getInitializer(); if (PyQualifiedName.fromComponents(PyNames.CLASSMETHOD).equals(qualifiedName)) { - return Modifier.CLASSMETHOD; + return CLASSMETHOD; } if (PyQualifiedName.fromComponents(PyNames.STATICMETHOD).equals(qualifiedName)) { - return Modifier.STATICMETHOD; + return STATICMETHOD; } } }