We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3598a30 commit cf66e2bCopy full SHA for cf66e2b
src/blosc2/ndarray.py
@@ -45,10 +45,7 @@ def is_inside_new_expr() -> bool:
45
"""
46
# Get the current call stack
47
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
- )
+ return builtins.any(frame_info.function in {"_new_expr", "_open_lazyarray"} for frame_info in stack)
52
53
54
def make_key_hashable(key):
0 commit comments