Skip to content

Commit

Permalink
chore(typing): Ignore LookupData.data warning, add api.py comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 15, 2024
1 parent 760c222 commit 3946d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/vegalite/v5/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,9 @@ def test_selection_property():

def test_LookupData():
df = nw.from_native(pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]}))
lookup = alt.LookupData(data=df, key="x")
# Data type hints won't match with what TopLevelUnitSpec expects
# as there is some data processing happening when converting to a VL spec
lookup = alt.LookupData(data=df, key="x") # type: ignore[arg-type]

dct = lookup.to_dict()
assert dct["key"] == "x"
Expand Down

0 comments on commit 3946d02

Please sign in to comment.