Skip to content

Commit 08b0811

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 56d6a10 commit 08b0811

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,11 +876,10 @@ def _append_default(
876876
next_index += 1
877877
lines[append_index] += formatted_default
878878

879-
else: # add to last param doc line
880-
if type_annotation.endswith(" "):
881-
type_annotation += formatted_default
882-
else:
883-
type_annotation = f"{type_annotation}, {formatted_default}"
879+
elif type_annotation.endswith(" "):
880+
type_annotation += formatted_default
881+
else:
882+
type_annotation = f"{type_annotation}, {formatted_default}"
884883

885884
return type_annotation
886885

0 commit comments

Comments
 (0)