mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup
This commit is contained in:
@@ -52,7 +52,7 @@ extends
|
||||
|
||||
@Nullable
|
||||
PyType getReturnTypeFromDocString();
|
||||
|
||||
|
||||
@Nullable
|
||||
String getDocStringValue();
|
||||
|
||||
|
||||
@@ -314,7 +314,7 @@ public class PyFunctionImpl extends PyPresentableElementImpl<PyFunctionStub> 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<PyFunctionStub> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user