Skip to content

Commit

Permalink
Merge pull request #11821 from rapidsai/branch-22.10
Browse files Browse the repository at this point in the history
[gpuCI] Forward-merge branch-22.10 to branch-22.12 [skip gpuci]
  • Loading branch information
GPUtester authored Sep 29, 2022
2 parents ec4cdd8 + 3731b4c commit 87d0387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cudf/cudf/core/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def _binaryop(self, other, op: str):
if is_scalar(other):
other = to_cudf_compatible_scalar(other)
out_dtype = self._binop_result_dtype_or_error(other, op)
valid = self.is_valid and (
isinstance(other, np.generic) or other.is_valid
valid = self.is_valid() and (
isinstance(other, np.generic) or other.is_valid()
)
if not valid:
return Scalar(None, dtype=out_dtype)
Expand Down

0 comments on commit 87d0387

Please sign in to comment.