Skip to content

Commit eec7a47

Browse files
Merge pull request #475 from DimitriPapadopoulos/PYL-R1714
Merge comparisons with `in`
2 parents c6028fb + 96032d8 commit eec7a47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blosc2/lazyexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ def slices_eval_getitem(
16731673
def infer_reduction_dtype(dtype, operation):
16741674
# It may change in the future, but mostly array-api compliant
16751675
my_float = np.result_type(
1676-
dtype, np.float32 if dtype == np.float32 or dtype == np.complex64 else blosc2.DEFAULT_FLOAT
1676+
dtype, np.float32 if dtype in (np.float32, np.complex64) else blosc2.DEFAULT_FLOAT
16771677
)
16781678
if operation in {ReduceOp.SUM, ReduceOp.PROD}:
16791679
if np.issubdtype(dtype, np.unsignedinteger):

0 commit comments

Comments
 (0)