eric6/QScintilla/DocstringGenerator/EricdocGenerator.py

changeset 8000
47b15df088e4
parent 7998
cd41c844862f
child 8005
94a6a1bd5f80
diff -r 159689297bc0 -r 47b15df088e4 eric6/QScintilla/DocstringGenerator/EricdocGenerator.py
--- a/eric6/QScintilla/DocstringGenerator/EricdocGenerator.py	Fri Jan 22 16:55:43 2021 +0100
+++ b/eric6/QScintilla/DocstringGenerator/EricdocGenerator.py	Sat Jan 23 12:02:52 2021 +0100
@@ -21,17 +21,16 @@
     @return list of docstring lines
     @rtype str
     """
+    # __IGNORE_WARNING_D202__
     lines = []
     
     # create a basic/partial function description
-    descrComplete = False
     if functionInfo.functionType == "classmethod":
         descr = "Class method "
     elif functionInfo.functionType == "staticmethod":
         descr = "Static method "
     elif functionInfo.functionType == "constructor":
         descr = "Constructor"
-        descrComplete = True
     else:
         if functionInfo.visibility == "public":
             descr = "Public "
@@ -61,8 +60,6 @@
                 descr = "Slot "
             else:
                 descr = "Function "
-    if not descrComplete:
-        descr += "DESCRIPTION"
     lines.append(descr)
     
     # remove 'self', 'this' or 'cls' from arguments list

eric ide

mercurial