Skip to content

Commit 4de2e06

Browse files
committed
Use builtins.all in diff utilities to avoid conflicts with all defined in the same file
1 parent 0c36d4f commit 4de2e06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dpctl/tensor/_utility_functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
import builtins
1718
import operator
1819

1920
import dpctl.tensor as dpt
@@ -166,7 +167,7 @@ def _validate_diff_shape(sh1, sh2, axis):
166167
return True
167168
else:
168169
sh1_ndim = len(sh1)
169-
if sh1_ndim == len(sh2) and all(
170+
if sh1_ndim == len(sh2) and builtins.all(
170171
sh1[i] == sh2[i] for i in range(sh1_ndim) if i != axis
171172
):
172173
return True
@@ -229,7 +230,7 @@ def _concat_diff_input(arr, axis, prepend, append):
229230
arr_shape = arr.shape
230231
prepend_shape = _get_shape(prepend)
231232
append_shape = _get_shape(append)
232-
if not all(
233+
if not builtins.all(
233234
isinstance(s, (tuple, list))
234235
for s in (
235236
prepend_shape,

0 commit comments

Comments
 (0)