Skip to content

Commit fe7ccb2

Browse files
committed
Removed an unnecessary "else" branch
1 parent 645fa6b commit fe7ccb2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sphinx_autodoc_typehints.py

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ def format_annotation(annotation):
121121
getattr(annotation, '__args__', None))
122122
if params:
123123
extra = '\\[{}]'.format(', '.join(format_annotation(param) for param in params))
124-
else:
125-
extra = ''
126124

127125
return ':py:class:`~{}.{}`{}'.format(annotation.__module__, annotation_cls.__qualname__,
128126
extra)

0 commit comments

Comments
 (0)