Skip to content

Commit 5fc86c6

Browse files
committed
Fix __repr__ in LocalAccessor
1 parent 6cdb80c commit 5fc86c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/_sycl_queue.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ cdef class LocalAccessor:
196196
raise ValueError(f"Unrecognized type value: '{dtype}'")
197197

198198
def __repr__(self):
199-
return "LocalAccessor(" + self.ndim + ")"
199+
return f"LocalAccessor({self.lacc.ndim})"
200200

201201
cdef size_t addressof(self):
202202
"""

0 commit comments

Comments
 (0)