Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/blocks/mrc_get_python_variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import * as toolboxItems from '../toolbox/items';

export const BLOCK_NAME = 'mrc_get_python_variable';

enum VariableKind {
export enum VariableKind {
MODULE = 'module',
CLASS = 'class',
INSTANCE = 'instance',
Expand Down
9 changes: 1 addition & 8 deletions src/blocks/mrc_set_python_variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import * as Blockly from 'blockly';
import { Order } from 'blockly/python';

import { VariableKind } from './mrc_get_python_variable';
import { getAllowedTypesForSetCheck } from './utils/python';
import * as variable from './utils/variable';
import { ExtendedPythonGenerator } from '../editor/extended_python_generator';
Expand All @@ -36,14 +37,6 @@ import * as toolboxItems from '../toolbox/items';

export const BLOCK_NAME = 'mrc_set_python_variable';

// TODO(lizlooney): Consider combining VariableKind here with VariableKind in
// mrc_get_python_variable.ts. They are identical.
enum VariableKind {
MODULE = 'module',
CLASS = 'class',
INSTANCE = 'instance',
}

const FIELD_MODULE_OR_CLASS_NAME = 'MODULE_OR_CLASS';
const FIELD_VARIABLE_NAME = 'VAR';

Expand Down