src/eric7/QScintilla/DocstringGenerator/EricdocGenerator.py

branch
eric7
changeset 10057
1e31ca1078ab
parent 9653
e67609152c5e
child 10069
435cc5875135
equal deleted inserted replaced
10056:ac1c214e0a05 10057:1e31ca1078ab
105 105
106 # add return section 106 # add return section
107 if ( 107 if (
108 functionInfo.hasYield 108 functionInfo.hasYield
109 or functionInfo.returnValueInBody 109 or functionInfo.returnValueInBody
110 or functionInfo.returnTypeAnnotated 110 or (
111 functionInfo.returnTypeAnnotated
112 and functionInfo.returnTypeAnnotated != "None"
113 )
111 ): 114 ):
112 if functionInfo.hasYield: 115 if functionInfo.hasYield:
113 lines.append("@yield DESCRIPTION") 116 lines.append("@yield DESCRIPTION")
114 rType = "@ytype" 117 rType = "@ytype"
115 else: 118 else:

eric ide

mercurial