From d640933ce1db795a0c2dd3814f761d47cb221d96 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:08:05 +0000 Subject: [PATCH] refactor: Remove `pred` assignment I added this while trying to resolve a different typing issue, purely to see what was inferred --- altair/vegalite/v5/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index 15880fc85..6eb6b7d63 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -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,