Skip to content

Commit

Permalink
it gets simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jul 28, 2023
1 parent 8653a86 commit 91a8b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/utils/udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _matches(
n_required_ops, argvals = len(opnames), argvals or []
instructions = self._instructions[idx : idx + n_required_ops]
if len(instructions) == n_required_ops and all(
any(inst.opname == match_opname for match_opname in match_opnames)
inst.opname in match_opnames
and (match_argval is None or inst.argval in match_argval)
for inst, match_opnames, match_argval in zip_longest(
instructions, opnames, argvals
Expand Down

0 comments on commit 91a8b14

Please sign in to comment.