Skip to content

Commit 282901b

Browse files
committed
clean up
1 parent 8edbe6d commit 282901b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

caten/isl/specs/ast_expr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def __init__(self, handle_or_spec: Any) -> None:
2929
super().__init__(handle)
3030
else:
3131
super().__init__(handle_or_spec)
32-
33-
def get_type_name(self) -> str:
32+
33+
def get_type_name(self) -> str:
3434
"""Helper to get the string name of the expr type."""
3535
return _ISL_AST_EXPR_TYPE_MAP.get(self.get_type(), "unknown")
3636

caten/isl/specs/ast_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_type_name(self) -> str:
3737

3838
@classmethod
3939
def from_str(cls, spec: str) -> Any:
40+
return _isl_ast_node_read_from_str(spec)
4041

4142
def copy_handle(self) -> Any:
4243
return _isl_ast_node_copy(self, return_raw_pointer=True)

0 commit comments

Comments
 (0)