Skip to content

Commit

Permalink
chore: bring back singular parameter name for deferred inputs to arra…
Browse files Browse the repository at this point in the history
…y map and filter
  • Loading branch information
cpcloud committed Feb 8, 2024
1 parent c045312 commit 4b9201e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/expr/types/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def map(self, func: Deferred | Callable[[ir.Value], ir.Value]) -> ir.ArrayValue:
└────────────────────────┘
"""
if isinstance(func, Deferred):
name = str(func)
name = "__deferred__"
else:
name = next(iter(inspect.signature(func).parameters.keys()))
parameter = ops.Argument(
Expand Down Expand Up @@ -544,7 +544,7 @@ def filter(
└───────────────────────────────┘
"""
if isinstance(predicate, Deferred):
name = str(predicate)
name = "__deferred__"
else:
name = next(iter(inspect.signature(predicate).parameters.keys()))
parameter = ops.Argument(
Expand Down

0 comments on commit 4b9201e

Please sign in to comment.