Skip to content

Commit

Permalink
Fix mypy error for data argument. Add RepeatRef as a type hint for sh…
Browse files Browse the repository at this point in the history
…orthand
  • Loading branch information
binste committed Oct 30, 2023
1 parent a19f846 commit 18d96e4
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 111 deletions.
5 changes: 4 additions & 1 deletion altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2769,7 +2769,10 @@ def __init__(
**kwargs,
) -> None:
super(Chart, self).__init__(
data=data,
# Data type hints won't match with what TopLevelUnitSpec expects
# as there is some data processing happening when converting to
# a VL spec
data=data, # type: ignore[arg-type]
encoding=encoding,
mark=mark,
width=width,
Expand Down
Loading

0 comments on commit 18d96e4

Please sign in to comment.