Commit f6759b59 authored by takatost's avatar takatost

replace block type to node type

parent a19473e2
...@@ -19,14 +19,14 @@ class NodeType(Enum): ...@@ -19,14 +19,14 @@ class NodeType(Enum):
VARIABLE_ASSIGNER = 'variable-assigner' VARIABLE_ASSIGNER = 'variable-assigner'
@classmethod @classmethod
def value_of(cls, value: str) -> 'BlockType': def value_of(cls, value: str) -> 'NodeType':
""" """
Get value of given block type. Get value of given node type.
:param value: block type value :param value: node type value
:return: block type :return: node type
""" """
for block_type in cls: for node_type in cls:
if block_type.value == value: if node_type.value == value:
return block_type return node_type
raise ValueError(f'invalid block type value {value}') raise ValueError(f'invalid node type value {value}')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment