Skip to content

Commit a7c817f

Browse files
committed
pre-commit fixes
1 parent 0f44d42 commit a7c817f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dpnp/backend/extensions/indexing/choose.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ std::pair<sycl::event, sycl::event>
268268
}
269269

270270
if (!(chc_type_id ==
271-
array_types.typenum_to_lookup_id(chc_.get_typenum())))
272-
{
271+
array_types.typenum_to_lookup_id(chc_.get_typenum()))) {
273272
throw py::type_error(
274273
"Choice array data types are not all the same.");
275274
}
@@ -396,8 +395,7 @@ struct ChooseWrapFactory
396395
fnT get()
397396
{
398397
if constexpr (std::is_integral<IndT>::value &&
399-
!std::is_same<IndT, bool>::value)
400-
{
398+
!std::is_same<IndT, bool>::value) {
401399
using dpctl::tensor::indexing_utils::WrapIndex;
402400
fnT fn = kernels::choose_impl<WrapIndex<IndT>, IndT, T>;
403401
return fn;
@@ -415,8 +413,7 @@ struct ChooseClipFactory
415413
fnT get()
416414
{
417415
if constexpr (std::is_integral<IndT>::value &&
418-
!std::is_same<IndT, bool>::value)
419-
{
416+
!std::is_same<IndT, bool>::value) {
420417
using dpctl::tensor::indexing_utils::ClipIndex;
421418
fnT fn = kernels::choose_impl<ClipIndex<IndT>, IndT, T>;
422419
return fn;

dpnp/backend/src/dpnp_fptr.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ class dpnp_less_comp
246246
ret = (b.imag() != b.imag() && a.imag() == a.imag());
247247
}
248248
else if (a.real() == b.real() ||
249-
(a.real() != a.real() && b.real() != b.real()))
250-
{
249+
(a.real() != a.real() && b.real() != b.real())) {
251250
ret = (a.imag() < b.imag() ||
252251
(b.imag() != b.imag() && a.imag() == a.imag()));
253252
}

dpnp/dpnp_iface_indexing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
from dpctl.tensor._numpy_helper import normalize_axis_index
5151

5252
import dpnp
53+
54+
# pylint: disable=no-name-in-module
5355
import dpnp.backend.extensions.indexing._indexing_impl as indexing_ext
5456

5557
# pylint: disable=no-name-in-module

0 commit comments

Comments
 (0)