Skip to content

Commit

Permalink
refactor: Remove pred assignment
Browse files Browse the repository at this point in the history
I added this while trying to resolve a different typing issue, purely to see what was inferred
  • Loading branch information
dangotbanned committed Nov 4, 2024
1 parent 5fd4f5a commit d640933
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,8 +3093,7 @@ def transform_filter(
else:
more_predicates = *more_predicates, depr_filter
cond = _parse_when(predicate, *more_predicates, empty=empty, **constraints)
pred = cond.get("test", cond)
return self._add_transform(core.FilterTransform(filter=pred))
return self._add_transform(core.FilterTransform(filter=cond.get("test", cond)))

def transform_flatten(
self,
Expand Down

0 comments on commit d640933

Please sign in to comment.