diff --git a/altair/typing.py b/altair/typing.py index 101b94d57c..3c17895dd0 100644 --- a/altair/typing.py +++ b/altair/typing.py @@ -48,8 +48,10 @@ "Optional", "ThemeConfig", "is_chart_type", + "theme", ] +import altair.vegalite.v5.schema._config as theme from altair.utils.schemapi import Optional from altair.vegalite.v5.api import ChartType, is_chart_type from altair.vegalite.v5.schema._config import ThemeConfig diff --git a/doc/user_guide/api.rst b/doc/user_guide/api.rst index 40d63957d7..9000bce996 100644 --- a/doc/user_guide/api.rst +++ b/doc/user_guide/api.rst @@ -691,4 +691,5 @@ Typing Optional ThemeConfig is_chart_type + theme