From c217b4faf3900026aa4c81e696df268731f5c150 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:22:17 +0100 Subject: [PATCH] fix: `mypy` error ``` tests\vegalite\v5\test_api.py:258: error: Item "None" of "dict[str, str | Expression | PredicateComposition | Any] | Any | None" has no attribute "pop" [union-attr] ``` --- tests/vegalite/v5/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vegalite/v5/test_api.py b/tests/vegalite/v5/test_api.py index 5c25e0a80..a0de4b36d 100644 --- a/tests/vegalite/v5/test_api.py +++ b/tests/vegalite/v5/test_api.py @@ -254,7 +254,7 @@ def test_chart_operations(): def test_when() -> None: select = alt.selection_point(name="select", on="click") - condition = alt.condition(select, alt.value(1), "two", empty=False).get("condition") + condition = alt.condition(select, alt.value(1), "two", empty=False)["condition"] condition.pop("value") when = alt.when(select, empty=False) when_constraint = alt.when(Origin="Europe")