Skip to content

Commit

Permalink
fix: mypy error
Browse files Browse the repository at this point in the history
```
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]
```
  • Loading branch information
dangotbanned committed Jul 3, 2024
1 parent f89990f commit c217b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vegalite/v5/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c217b4f

Please sign in to comment.