fix(python): ensure Raises: section is after Returns: section in google style (#194)

This commit is contained in:
Christoph Hasse
2024-12-04 21:22:16 +00:00
committed by GitHub
parent e3b8f6dca1
commit 37dd095892

View File

@@ -18,14 +18,14 @@ return {
{ i.ArbitraryArgs, " %s: $1", { type = { "func" } } },
{ i.Kwargs, " %s: $1", { type = { "func" } } },
{ 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, "Returns:", { type = { "func" } } },
{ i.HasReturn, " $1", { type = { "func" } } },
{ i.HasYield, "", { type = { "func" } } },
{ i.HasYield, "Yields:", { type = { "func" } } },
{ i.HasYield, " $1", { type = { "func" } } },
{ i.HasThrow, "", { type = { "func" } } },
{ i.HasThrow, "Raises:", { type = { "func" } } },
{ i.Throw, " %s: $1", { type = { "func" } } },
{ nil, '"""' },
}