Skip to content

Commit

Permalink
builtins are not really necessary here
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Nov 26, 2024
1 parent dca8d84 commit 23b5df2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/blosc2/lazyexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import ast
import asyncio
import builtins
import concurrent.futures
import copy
import math
Expand Down Expand Up @@ -2824,7 +2823,7 @@ def lazyexpr(
operands = seek_operands(operand_set, local_dict, global_dict)
else:
# No operands found in the expression. Maybe a constructor?
constructor = builtins.any(constructor in expression for constructor in constructors)
constructor = any(constructor in expression for constructor in constructors)
if not constructor:
raise ValueError("No operands nor constructors found in the expression")
# _new_expr will take care of the constructor, but needs an empty dict in operands
Expand Down

0 comments on commit 23b5df2

Please sign in to comment.