Skip to content

Commit d363b10

Browse files
committed
Fixed output for non-opmodes
1 parent 828c76d commit d363b10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/editor/extended_python_generator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ export class ExtendedPythonGenerator extends PythonGenerator {
167167
}
168168
this.classMethods = Object.create(null);
169169
this.ports = Object.create(null);
170-
code = annotations + classDef + this.prefixLines(classMethods.join('\n\n'), this.INDENT);
170+
code = classDef + this.prefixLines(classMethods.join('\n\n'), this.INDENT);
171+
if(annotations){
172+
code = annotations + code;
173+
}
174+
this.details = null;
171175

172176
this.context.setExportedBlocks(this.produceExportedBlocks(this.workspace));
173177
}

0 commit comments

Comments
 (0)