From 37dd095892e3f846418c465852f7b21f81d0f46c Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Wed, 4 Dec 2024 21:22:16 +0000 Subject: [PATCH] fix(python): ensure Raises: section is after Returns: section in google style (#194) --- lua/neogen/templates/google_docstrings.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/neogen/templates/google_docstrings.lua b/lua/neogen/templates/google_docstrings.lua index 6c6bdad..fb80b6d 100644 --- a/lua/neogen/templates/google_docstrings.lua +++ b/lua/neogen/templates/google_docstrings.lua @@ -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, '"""' }, }