diff --git a/altair/vega/v5/__init__.py b/altair/vega/v5/__init__.py index 3a7406d8a..b7164e3cc 100644 --- a/altair/vega/v5/__init__.py +++ b/altair/vega/v5/__init__.py @@ -16,7 +16,6 @@ ) warnings.warn( - "The module altair.vega.v5 is deprecated and will be removed in Altair 5. " - "Use `import altair as alt` instead of `import altair.vega.v5 as alt`.", + "The module altair.vega.v5 is deprecated and will be removed in Altair 5.", AltairDeprecationWarning, ) diff --git a/altair/vega/v5/display.py b/altair/vega/v5/display.py index bd87a05bc..f813dc92a 100644 --- a/altair/vega/v5/display.py +++ b/altair/vega/v5/display.py @@ -95,8 +95,7 @@ class Vega(Displayable): @deprecated( - "Rendering Vega specifications is deprecated and will be removed in Altair 5. " - "Use `import altair as alt` instead of `import altair.vega.v5 as alt`." + "Rendering Vega specifications is deprecated and will be removed in Altair 5." ) def vega(spec, validate=True): """Render and optionally validate a Vega 5 spec.