summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/write_pyi.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/write_pyi.py b/tools/write_pyi.py
index 054d27f..61c3052 100644
--- a/tools/write_pyi.py
+++ b/tools/write_pyi.py
@@ -121,9 +121,7 @@ def _generate_stub_for_meth(cls, name, printer):
retval = re.sub("NoneType", "None", retval)
return retval
- argspec = inspect_formatargspec(
- *spec, formatvalue=lambda value: "", formatannotation=_formatannotation
- )
+ argspec = inspect_formatargspec(*spec, formatannotation=_formatannotation)
func_text = textwrap.dedent(
"""\