Skip to content

Commit

Permalink
refactor: remove dead _get_channels_mapping code (#3467)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned authored Jul 13, 2024
1 parent 1ef4056 commit bed0965
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,6 @@ def to_dict(self, *args, **kwargs) -> dict:
TOPLEVEL_ONLY_KEYS = {"background", "config", "autosize", "padding", "$schema"}


def _get_channels_mapping() -> dict[type[SchemaBase], str]:
mapping: dict[type[SchemaBase], str] = {}
for attr in dir(channels):
cls = getattr(channels, attr)
if isinstance(cls, type) and issubclass(cls, core.SchemaBase):
mapping[cls] = attr.replace("Value", "").lower()
return mapping


# -------------------------------------------------------------------------
# Tools for working with parameters
class Parameter(_expr_core.OperatorMixin):
Expand Down

0 comments on commit bed0965

Please sign in to comment.