Issue #29338: Don't output an empty signature for class constructor.
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index f0c7cfc..4955540 100644
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -917,7 +917,7 @@
             signature = None
         if signature:
             argspec = str(signature)
-            if argspec:
+            if argspec and argspec != '()':
                 decl = name + self.escape(argspec) + '\n\n'
 
         doc = getdoc(object)
@@ -1236,7 +1236,7 @@
             signature = None
         if signature:
             argspec = str(signature)
-            if argspec:
+            if argspec and argspec != '()':
                 push(name + argspec + '\n')
 
         doc = getdoc(object)