From 12b6410b85d278a051b16cbf3054b6f0a261be83 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:07:24 +0100 Subject: [PATCH] feat: Export `_config.py` as `altair.typing.theme` https://github.com/vega/altair/pull/3536#discussion_r1761302892 --- altair/typing.py | 2 ++ doc/user_guide/api.rst | 1 + 2 files changed, 3 insertions(+) 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