From aa00dc12ab99fdb2e0f6082e1c3b1e8c9a799336 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Sun, 6 Oct 2024 17:41:50 +0100 Subject: [PATCH] fix(typing): Add patch for `vl-convert-python=1.7.0` Will open a new PR to merge this, related to https://github.com/vega/vl-convert/pull/185 --- tools/generate_schema_wrapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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():