mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #29338: Don't output an empty signature for class constructor.
This commit is contained in:
parent
0e830455cb
commit
213f229fbd
1 changed files with 2 additions and 2 deletions
|
@ -917,7 +917,7 @@ class HTMLDoc(Doc):
|
||||||
signature = None
|
signature = None
|
||||||
if signature:
|
if signature:
|
||||||
argspec = str(signature)
|
argspec = str(signature)
|
||||||
if argspec:
|
if argspec and argspec != '()':
|
||||||
decl = name + self.escape(argspec) + '\n\n'
|
decl = name + self.escape(argspec) + '\n\n'
|
||||||
|
|
||||||
doc = getdoc(object)
|
doc = getdoc(object)
|
||||||
|
@ -1236,7 +1236,7 @@ location listed above.
|
||||||
signature = None
|
signature = None
|
||||||
if signature:
|
if signature:
|
||||||
argspec = str(signature)
|
argspec = str(signature)
|
||||||
if argspec:
|
if argspec and argspec != '()':
|
||||||
push(name + argspec + '\n')
|
push(name + argspec + '\n')
|
||||||
|
|
||||||
doc = getdoc(object)
|
doc = getdoc(object)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue