There was an error while loading. Please reload this page.
1 parent 0e83045 commit 213f229Copy full SHA for 213f229
1 file changed
Lib/pydoc.py
@@ -917,7 +917,7 @@ def spilldata(msg, attrs, predicate):
917
signature = None
918
if signature:
919
argspec = str(signature)
920
- if argspec:
+ if argspec and argspec != '()':
921
decl = name + self.escape(argspec) + '\n\n'
922
923
doc = getdoc(object)
@@ -1236,7 +1236,7 @@ def makename(c, m=object.__module__):
1236
1237
1238
1239
1240
push(name + argspec + '\n')
1241
1242
0 commit comments