We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d6a10 commit 08b0811Copy full SHA for 08b0811
src/sphinx_autodoc_typehints/__init__.py
@@ -876,11 +876,10 @@ def _append_default(
876
next_index += 1
877
lines[append_index] += formatted_default
878
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}"
+ elif type_annotation.endswith(" "):
+ type_annotation += formatted_default
+ else:
+ type_annotation = f"{type_annotation}, {formatted_default}"
884
885
return type_annotation
886
0 commit comments