Skip to content

Commit

Permalink
Add shorthand str and list[str] type hints to signature of encode method
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed Oct 29, 2023
1 parent c9ece69 commit 9a0e96b
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 15 deletions.
2 changes: 1 addition & 1 deletion altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,7 @@ def resolve_scale(self, *args, **kwargs) -> Self:


class _EncodingMixin:
@utils.use_signature(core.FacetedEncoding)
@utils.use_signature(core._encode_signature)
def encode(self, *args, **kwargs) -> Self:
# Convert args to kwargs based on their types.
kwargs = utils.infer_encoding_types(args, kwargs, channels)
Expand Down
Loading

0 comments on commit 9a0e96b

Please sign in to comment.