Skip to content

Commit

Permalink
docs: Restore Parameter.ref() message
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jul 30, 2024
1 parent 6f31703 commit 23a8eb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,13 @@ def __init__(
self.param = param
self.param_type = param_type

@utils.deprecated(version="5.0.0", alternative="to_dict")
@utils.deprecated(
version="5.0.0",
alternative="to_dict",
message="No need to call '.ref()' anymore.",
)
def ref(self) -> dict:
"""'ref' is deprecated. Use '.to_dict()' instead."""
"""'ref' is deprecated. No need to call '.ref()' anymore."""
return self.to_dict()

def to_dict(self) -> dict[str, str | dict]:
Expand Down

0 comments on commit 23a8eb5

Please sign in to comment.