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 3bcc5bd commit cda078dCopy full SHA for cda078d
mypy/stubdoc.py
@@ -142,14 +142,7 @@ def format_sig(
142
retfield = " -> " + ret_type
143
144
prefix = "async " if is_async else ""
145
- sig = "{indent}{prefix}def {name}{type_args}({args}){ret}:".format(
146
- indent=indent,
147
- prefix=prefix,
148
- name=self.name,
149
- args=", ".join(args),
150
- ret=retfield,
151
- type_args=self.type_args,
152
- )
+ sig = f"{indent}{prefix}def {self.name}{self.type_args}({', '.join(args)}){retfield}:"
153
if docstring:
154
suffix = f"\n{indent} {mypy.util.quote_docstring(docstring)}"
155
else:
0 commit comments