def _get_datashape(graph_node): if isinstance(graph_node, graph.App): return _get_datashape(graph_node.operator) elif isinstance(graph_node, nodes.Node): return graph_node.datashape else: return coretypes.from_python_scalar(graph_node)
def simple_type(self): return coretypes.from_python_scalar(self.val)