Skip to content

Commit ffe02f1

Browse files
committed
Allign with pre-commit rules
1 parent c989150 commit ffe02f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dpctl/tensor/_usmarray.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,9 @@ cdef class usm_ndarray:
382382
else:
383383
self._cleanup()
384384
raise ValueError("buffer='{}' was not understood.".format(buffer))
385-
if shape_to_elem_count(nd, shape_ptr) > 0 and (_offset + ary_min_displacement < 0 or
386-
(_offset + ary_max_displacement + 1) * itemsize > _buffer.nbytes):
385+
if shape_to_elem_count(nd, shape_ptr) > 0 and
386+
(_offset + ary_min_displacement < 0 or
387+
(_offset + ary_max_displacement + 1) * itemsize > _buffer.nbytes):
387388
self._cleanup()
388389
raise ValueError(("buffer='{}' can not accommodate "
389390
"the requested array.").format(buffer))

0 commit comments

Comments
 (0)