From e135c265a438d53a1de3ab628f52317f7dca84c9 Mon Sep 17 00:00:00 2001 From: Dan Redding <125183946+dangotbanned@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:34:25 +0100 Subject: [PATCH 1/2] ci: Add include patterns for `pyright` (#3583) --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3e6dd7533..7dff1ab14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -448,3 +448,10 @@ extraPaths=["./tools"] pythonPlatform="All" pythonVersion="3.8" reportUnusedExpression="none" +include=[ + "./altair/**/*.py", + ".doc/*.py", + "./sphinxext/**/*.py", + "./tests/**/*.py", + "./tools/**/*.py", +] \ No newline at end of file From 682b1695526d523b769f419b2dade1e32f5383de Mon Sep 17 00:00:00 2001 From: Jeffrey Newman Date: Mon, 9 Sep 2024 11:51:26 -0500 Subject: [PATCH 2/2] fix: Update docs to use correct init value for `selection_point` (#3584) --- tests/examples_arguments_syntax/us_population_over_time.py | 2 +- .../us_population_pyramid_over_time.py | 2 +- tests/examples_methods_syntax/us_population_over_time.py | 2 +- .../examples_methods_syntax/us_population_pyramid_over_time.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/examples_arguments_syntax/us_population_over_time.py b/tests/examples_arguments_syntax/us_population_over_time.py index db7403663..193012584 100644 --- a/tests/examples_arguments_syntax/us_population_over_time.py +++ b/tests/examples_arguments_syntax/us_population_over_time.py @@ -15,7 +15,7 @@ name="Year", fields=["year"], bind=alt.binding_range(min=1900, max=2000, step=10, name="Year"), - value={"year": 2000}, + value=2000, ) alt.Chart(source).mark_bar().encode( diff --git a/tests/examples_arguments_syntax/us_population_pyramid_over_time.py b/tests/examples_arguments_syntax/us_population_pyramid_over_time.py index 4857adf6a..00f62f73f 100644 --- a/tests/examples_arguments_syntax/us_population_pyramid_over_time.py +++ b/tests/examples_arguments_syntax/us_population_pyramid_over_time.py @@ -13,7 +13,7 @@ slider = alt.binding_range(min=1850, max=2000, step=10) select_year = alt.selection_point(name='year', fields=['year'], - bind=slider, value={'year': 2000}) + bind=slider, value=2000) base = alt.Chart(source).add_params( select_year diff --git a/tests/examples_methods_syntax/us_population_over_time.py b/tests/examples_methods_syntax/us_population_over_time.py index 75c4fa01c..28d743e61 100644 --- a/tests/examples_methods_syntax/us_population_over_time.py +++ b/tests/examples_methods_syntax/us_population_over_time.py @@ -15,7 +15,7 @@ name="Year", fields=["year"], bind=alt.binding_range(min=1900, max=2000, step=10, name="Year"), - value={"year": 2000}, + value=2000, ) alt.Chart(source).mark_bar().encode( diff --git a/tests/examples_methods_syntax/us_population_pyramid_over_time.py b/tests/examples_methods_syntax/us_population_pyramid_over_time.py index f7418413d..334a77c6e 100644 --- a/tests/examples_methods_syntax/us_population_pyramid_over_time.py +++ b/tests/examples_methods_syntax/us_population_pyramid_over_time.py @@ -13,7 +13,7 @@ slider = alt.binding_range(min=1850, max=2000, step=10) select_year = alt.selection_point(name='year', fields=['year'], - bind=slider, value={'year': 2000}) + bind=slider, value=2000) base = alt.Chart(source).add_params( select_year