fix(python): ensure Raises: section is after Returns: section in google style (#194)
This commit is contained in:
@@ -18,14 +18,14 @@ return {
|
|||||||
{ i.ArbitraryArgs, " %s: $1", { type = { "func" } } },
|
{ i.ArbitraryArgs, " %s: $1", { type = { "func" } } },
|
||||||
{ i.Kwargs, " %s: $1", { type = { "func" } } },
|
{ i.Kwargs, " %s: $1", { type = { "func" } } },
|
||||||
{ i.ClassAttribute, " %s: $1", { before_first_item = { "", "Attributes: " } } },
|
{ i.ClassAttribute, " %s: $1", { before_first_item = { "", "Attributes: " } } },
|
||||||
{ i.HasThrow, "", { type = { "func" } } },
|
|
||||||
{ i.HasThrow, "Raises:", { type = { "func" } } },
|
|
||||||
{ i.Throw, " %s: $1", { type = { "func" } } },
|
|
||||||
{ i.HasReturn, "", { type = { "func" } } },
|
{ i.HasReturn, "", { type = { "func" } } },
|
||||||
{ i.HasReturn, "Returns:", { type = { "func" } } },
|
{ i.HasReturn, "Returns:", { type = { "func" } } },
|
||||||
{ i.HasReturn, " $1", { type = { "func" } } },
|
{ i.HasReturn, " $1", { type = { "func" } } },
|
||||||
{ i.HasYield, "", { type = { "func" } } },
|
{ i.HasYield, "", { type = { "func" } } },
|
||||||
{ i.HasYield, "Yields:", { type = { "func" } } },
|
{ i.HasYield, "Yields:", { type = { "func" } } },
|
||||||
{ i.HasYield, " $1", { type = { "func" } } },
|
{ i.HasYield, " $1", { type = { "func" } } },
|
||||||
|
{ i.HasThrow, "", { type = { "func" } } },
|
||||||
|
{ i.HasThrow, "Raises:", { type = { "func" } } },
|
||||||
|
{ i.Throw, " %s: $1", { type = { "func" } } },
|
||||||
{ nil, '"""' },
|
{ nil, '"""' },
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user