Skip to content

Commit

Permalink
element_type
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh committed Jan 7, 2025
1 parent a32e6d5 commit 3bbe3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/interpreters/test_shaped_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def test_shaped_array_type():
array = ShapedArray(TypedPtr.new_int32([1, 2, 3]), [3])
assert array.type == i32
assert array.element_type == i32


def test_shaped_array_offset():
Expand Down
2 changes: 1 addition & 1 deletion xdsl/interpreters/shaped_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ShapedArray(Generic[_T]):
shape: list[int]

@property
def type(self) -> PackableType[_T]:
def element_type(self) -> PackableType[_T]:
return self._data.xtype

@property
Expand Down

0 comments on commit 3bbe3f2

Please sign in to comment.