Skip to content

Commit c98c630

Browse files
Merge pull request #346 from DimitriPapadopoulos/PYL-R1714
Merge comparisons with 'in'
2 parents 3598a30 + cf66e2b commit c98c630

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/blosc2/ndarray.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ def is_inside_new_expr() -> bool:
4545
"""
4646
# Get the current call stack
4747
stack = inspect.stack()
48-
return builtins.any(
49-
frame_info.function == "_new_expr" or frame_info.function == "_open_lazyarray"
50-
for frame_info in stack
51-
)
48+
return builtins.any(frame_info.function in {"_new_expr", "_open_lazyarray"} for frame_info in stack)
5249

5350

5451
def make_key_hashable(key):

0 commit comments

Comments
 (0)