Skip to content

Commit

Permalink
feat: Adds _config.__all__
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 8, 2024
1 parent 2d89ad7 commit 0af1cd1
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
63 changes: 63 additions & 0 deletions altair/vegalite/v5/schema/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,69 @@
from ._typing import * # noqa: F403


__all__ = [
"AreaConfigKwds",
"AutoSizeParamsKwds",
"AxisConfigKwds",
"BarConfigKwds",
"BindCheckboxKwds",
"BindDirectKwds",
"BindInputKwds",
"BindRadioSelectKwds",
"BindRangeKwds",
"BoxPlotConfigKwds",
"BrushConfigKwds",
"CompositionConfigKwds",
"DateTimeKwds",
"DerivedStreamKwds",
"ErrorBandConfigKwds",
"ErrorBarConfigKwds",
"FeatureGeometryGeoJsonPropertiesKwds",
"FormatConfigKwds",
"GeoJsonFeatureCollectionKwds",
"GeoJsonFeatureKwds",
"GeometryCollectionKwds",
"GradientStopKwds",
"HeaderConfigKwds",
"IntervalSelectionConfigKwds",
"IntervalSelectionConfigWithoutTypeKwds",
"LegendConfigKwds",
"LegendStreamBindingKwds",
"LineConfigKwds",
"LineStringKwds",
"LinearGradientKwds",
"LocaleKwds",
"MarkConfigKwds",
"MergedStreamKwds",
"MultiLineStringKwds",
"MultiPointKwds",
"MultiPolygonKwds",
"NumberLocaleKwds",
"OverlayMarkDefKwds",
"PointKwds",
"PointSelectionConfigKwds",
"PointSelectionConfigWithoutTypeKwds",
"PolygonKwds",
"ProjectionConfigKwds",
"RadialGradientKwds",
"RangeConfigKwds",
"RectConfigKwds",
"ScaleConfigKwds",
"ScaleInvalidDataConfigKwds",
"SelectionConfigKwds",
"StyleConfigIndexKwds",
"ThemeConfig",
"TickConfigKwds",
"TimeIntervalStepKwds",
"TimeLocaleKwds",
"TitleConfigKwds",
"TooltipContentKwds",
"TopLevelSelectionParameterKwds",
"VariableParameterKwds",
"ViewConfigKwds",
]


class AreaConfigKwds(TypedDict, total=False):
"""Placeholder doc."""

Expand Down
3 changes: 3 additions & 0 deletions tools/generate_schema_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,9 @@ def generate_config_typed_dicts(fp: Path, /) -> Iterator[str]:
)
for info in relevant.values()
)
_all = [f"{nm}{KWDS}" for nm in relevant]
_all.append("ThemeConfig")
yield f"__all__ = {_all}\n\n"
yield "\n".join(sub_dicts)

for prop, prop_info in config.properties.items():
Expand Down

0 comments on commit 0af1cd1

Please sign in to comment.