fix(python): no blank line after return

This commit is contained in:
meijieru
2021-12-08 01:04:11 -05:00
parent 0a5611d29a
commit e89760d899

View File

@@ -114,7 +114,6 @@ return {
{ "parameters", "\t%s: $1", { before_first_item = { "", "Args:" } } }, { "parameters", "\t%s: $1", { before_first_item = { "", "Args:" } } },
{ "attributes", "\t%s: $1", { before_first_item = { "", "Attributes: " } } }, { "attributes", "\t%s: $1", { before_first_item = { "", "Attributes: " } } },
{ "return_statement", "\t$1", { before_first_item = { "", "Returns: " } } }, { "return_statement", "\t$1", { before_first_item = { "", "Returns: " } } },
{ nil, "" },
{ nil, '"""' }, { nil, '"""' },
}, },
numpydoc = { numpydoc = {
@@ -123,7 +122,6 @@ return {
{ "parameters", "%s: $1", { before_first_item = { "", "Parameters", "----------" } } }, { "parameters", "%s: $1", { before_first_item = { "", "Parameters", "----------" } } },
{ "attributes", "%s: $1", { before_first_item = { "", "Attributes", "----------" } } }, { "attributes", "%s: $1", { before_first_item = { "", "Attributes", "----------" } } },
{ "return_statement", "$1", { before_first_item = { "", "Returns", "-------" } } }, { "return_statement", "$1", { before_first_item = { "", "Returns", "-------" } } },
{ nil, "" },
{ nil, '"""' }, { nil, '"""' },
}, },
}, },