Skip to content

Commit 65c1ce3

Browse files
committed
Remove disable=invalid-unary-operand-type since resolved with pylint 3.2.6
1 parent 2bab009 commit 65c1ce3

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

dpnp/dpnp_iface_logic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ def array_equal(a1, a2, equal_nan=False):
459459
False, usm_type=usm_type_alloc, sycl_queue=sycl_queue_alloc
460460
)
461461
# Shapes of a1, a2 and masks are guaranteed to be consistent by this point
462-
# pylint:disable=invalid-unary-operand-type
463462
return (a1[~a1nan] == a2[~a1nan]).all()
464463

465464

dpnp/dpnp_iface_nanfunctions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ def nanmean(a, axis=None, dtype=None, out=None, keepdims=False, *, where=True):
551551
raise TypeError("If input is inexact, then out must be inexact.")
552552

553553
cnt_dtype = a.real.dtype if dtype is None else dtype
554-
# pylint: disable=invalid-unary-operand-type
555554
cnt = dpnp.sum(
556555
~mask, axis=axis, dtype=cnt_dtype, keepdims=keepdims, where=where
557556
)
@@ -1062,7 +1061,6 @@ def nanvar(
10621061

10631062
# Compute mean
10641063
var_dtype = a.real.dtype if dtype is None else dtype
1065-
# pylint: disable=invalid-unary-operand-type
10661064
cnt = dpnp.sum(
10671065
~mask, axis=axis, dtype=var_dtype, keepdims=True, where=where
10681066
)

0 commit comments

Comments
 (0)