We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b603d47 commit 21e046dCopy full SHA for 21e046d
src/editor/extended_python_generator.ts
@@ -57,13 +57,8 @@ export class ExtendedPythonGenerator extends PythonGenerator {
57
}
58
59
defineClassVariables(workspace: Blockly.Workspace) : string{
60
- const classVars = Blockly.Variables.allUsedVarModels(workspace);
61
-
62
let variableDefinitions = '';
63
64
- for (let i = 0; i < classVars.length; i++) {
65
- variableDefinitions += this.INDENT + this.getVariableName(classVars[i].getId()) + ' = None\n';
66
- }
+
67
if (this.context?.getHasMechanisms()){
68
variableDefinitions += this.INDENT + "self.mechanisms = []\n";
69
0 commit comments