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 e8949a6 commit 4953b11Copy full SHA for 4953b11
src/blocks/mrc_class_method_def.ts
@@ -356,6 +356,10 @@ export const pythonFromBlock = function (
356
branch = generator.INDENT + 'super().__init__(' + class_specific + ')\n' +
357
generator.defineClassVariables() + branch;
358
}
359
+ else if (funcName == 'update'){
360
+ // Special case for update, to also call the update method of the base class
361
+ branch = generator.INDENT + 'self.update()\n' + branch;
362
+ }
363
if (returnValue) {
364
returnValue = generator.INDENT + 'return ' + returnValue + '\n';
365
} else if (!branch) {
0 commit comments