Skip to content

Commit 25b43eb

Browse files
committed
Fixed flake8 error
1 parent 47f6e7b commit 25b43eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sphinx_autodoc_typehints.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ def format_annotation(annotation, fully_qualified: bool = False) -> str:
128128

129129
# Some types require special handling
130130
if full_name == 'typing.NewType':
131-
args_format = '\\(:py:data:`~{name}`, {{}})'.format(prefix=prefix,
132-
name=annotation.__name__)
131+
args_format = '\\(:py:data:`~{name}`, {{}})'.format(name=annotation.__name__)
133132
role = 'func'
134133
elif full_name == 'typing.Union' and len(args) == 2 and type(None) in args:
135134
full_name = 'typing.Optional'

0 commit comments

Comments
 (0)