src/eric7/QScintilla/DocstringGenerator/EricdocGenerator.py

branch
eric7
changeset 10057
1e31ca1078ab
parent 9653
e67609152c5e
child 10069
435cc5875135
--- a/src/eric7/QScintilla/DocstringGenerator/EricdocGenerator.py	Tue May 23 13:33:47 2023 +0200
+++ b/src/eric7/QScintilla/DocstringGenerator/EricdocGenerator.py	Tue May 23 14:39:14 2023 +0200
@@ -107,7 +107,10 @@
     if (
         functionInfo.hasYield
         or functionInfo.returnValueInBody
-        or functionInfo.returnTypeAnnotated
+        or (
+            functionInfo.returnTypeAnnotated
+            and functionInfo.returnTypeAnnotated != "None"
+        )
     ):
         if functionInfo.hasYield:
             lines.append("@yield DESCRIPTION")

eric ide

mercurial