fixed PY-9690 Show 'Insert documentation string stub' only on function name

This commit is contained in:
Ekaterina Tuzova
2014-08-27 16:55:11 +04:00
parent 4e254412e3
commit 03ddb3a2d3
@@ -69,6 +69,7 @@ public class PyGenerateDocstringIntention extends BaseIntentionAction {
if (function == null || statementList != null) {
return false;
}
if (!elementAt.equals(function.getNameNode())) return false;
return isAvailableForFunction(project, function);
}