Skip to content

Commit 624db2b

Browse files
committed
Clear the list of ports in finish
1 parent 70e76c5 commit 624db2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/editor/extended_python_generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class ExtendedPythonGenerator extends PythonGenerator {
144144
classMethods.push(this.classMethods[name])
145145
}
146146
this.classMethods = Object.create(null);
147+
this.ports = Object.create(null);
147148
code = classDef + this.prefixLines(classMethods.join('\n\n'), this.INDENT);
148149

149150
this.context.setExportedBlocks(this.produceExportedBlocks(this.workspace));

0 commit comments

Comments
 (0)