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: |