From c46cbde180afb5178986efe1d523456dee8a5107 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Sun, 6 Oct 2024 17:55:12 +0100 Subject: [PATCH] ci: Bump `vl-convert-python` to `1.7.0` Related: - https://github.com/vega/altair/pull/3630/commits/aa00dc12ab99fdb2e0f6082e1c3b1e8c9a799336 - https://github.com/vega/vl-convert/pull/185 - https://github.com/vega/vl-convert/issues/191 --- pyproject.toml | 3 +-- tools/generate_schema_wrapper.py | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bc9cdf220..f01a562bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ Source = "https://github.com/vega/altair" [project.optional-dependencies] all = [ "vega_datasets>=0.9.0", - "vl-convert-python>=1.6.0", + "vl-convert-python>=1.7.0", "pandas>=0.25.3", "numpy", "pyarrow>=11", @@ -431,7 +431,6 @@ module = [ "vega_datasets.*", "pyarrow.*", "yaml.*", - "vl_convert.*", "pandas.lib.*", "geopandas.*", "nbformat.*", diff --git a/tools/generate_schema_wrapper.py b/tools/generate_schema_wrapper.py index a0fa08e72..85860e8f3 100644 --- a/tools/generate_schema_wrapper.py +++ b/tools/generate_schema_wrapper.py @@ -45,6 +45,7 @@ if TYPE_CHECKING: from tools.schemapi.codegen import ArgInfo, AttrGetter + from vl_convert import VegaThemes SCHEMA_VERSION: Final = "v5.20.1" @@ -482,8 +483,8 @@ def download_schemafile( def _vega_lite_props_only( - themes: dict[str, dict[str, Any]], props: SchemaProperties, / -) -> Iterator[tuple[str, dict[str, Any]]]: + themes: dict[VegaThemes, dict[str, Any]], props: SchemaProperties, / +) -> Iterator[tuple[VegaThemes, dict[str, Any]]]: """Removes properties that are allowed in `Vega` but not `Vega-Lite` from theme definitions.""" keep = props.keys() for name, theme_spec in themes.items():