Skip to content

Commit

Permalink
refactor: Simplify channels.py overloads (vega#3659)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned authored Oct 29, 2024
1 parent 6beec7b commit 2d812af
Show file tree
Hide file tree
Showing 7 changed files with 1,594 additions and 5,055 deletions.
107 changes: 0 additions & 107 deletions altair/vegalite/v5/schema/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
"Interpolate_T",
"LayoutAlign_T",
"LegendOrient_T",
"LocalMultiTimeUnit_T",
"LocalSingleTimeUnit_T",
"Map",
"MarkInvalidDataMode_T",
"MarkType_T",
Expand All @@ -80,7 +78,6 @@
"SelectionType_T",
"SingleDefUnitChannel_T",
"SingleTimeUnit_T",
"SortByChannelDesc_T",
"SortByChannel_T",
"SortOrder_T",
"StackOffset_T",
Expand All @@ -97,8 +94,6 @@
"TitleOrient_T",
"TypeForShape_T",
"Type_T",
"UtcMultiTimeUnit_T",
"UtcSingleTimeUnit_T",
"Value",
"VegaThemes",
"WindowOnlyOp_T",
Expand Down Expand Up @@ -886,50 +881,6 @@ class PaddingKwds(TypedDict, total=False):
"bottom-left",
"bottom-right",
]
LocalMultiTimeUnit_T: TypeAlias = Literal[
"yearquarter",
"yearquartermonth",
"yearmonth",
"yearmonthdate",
"yearmonthdatehours",
"yearmonthdatehoursminutes",
"yearmonthdatehoursminutesseconds",
"yearweek",
"yearweekday",
"yearweekdayhours",
"yearweekdayhoursminutes",
"yearweekdayhoursminutesseconds",
"yeardayofyear",
"quartermonth",
"monthdate",
"monthdatehours",
"monthdatehoursminutes",
"monthdatehoursminutesseconds",
"weekday",
"weekdayhours",
"weekdayhoursminutes",
"weekdayhoursminutesseconds",
"dayhours",
"dayhoursminutes",
"dayhoursminutesseconds",
"hoursminutes",
"hoursminutesseconds",
"minutesseconds",
"secondsmilliseconds",
]
LocalSingleTimeUnit_T: TypeAlias = Literal[
"year",
"quarter",
"month",
"week",
"day",
"dayofyear",
"date",
"hours",
"minutes",
"seconds",
"milliseconds",
]
MarkInvalidDataMode_T: TypeAlias = Literal[
"filter",
"break-paths-filter-domains",
Expand Down Expand Up @@ -1155,20 +1106,6 @@ class PaddingKwds(TypedDict, total=False):
"utcseconds",
"utcmilliseconds",
]
SortByChannelDesc_T: TypeAlias = Literal[
"-x",
"-y",
"-color",
"-fill",
"-stroke",
"-strokeWidth",
"-size",
"-shape",
"-fillOpacity",
"-strokeOpacity",
"-opacity",
"-text",
]
SortByChannel_T: TypeAlias = Literal[
"x",
"y",
Expand Down Expand Up @@ -1201,50 +1138,6 @@ class PaddingKwds(TypedDict, total=False):
TitleOrient_T: TypeAlias = Literal["none", "left", "right", "top", "bottom"]
TypeForShape_T: TypeAlias = Literal["nominal", "ordinal", "geojson"]
Type_T: TypeAlias = Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"]
UtcMultiTimeUnit_T: TypeAlias = Literal[
"utcyearquarter",
"utcyearquartermonth",
"utcyearmonth",
"utcyearmonthdate",
"utcyearmonthdatehours",
"utcyearmonthdatehoursminutes",
"utcyearmonthdatehoursminutesseconds",
"utcyearweek",
"utcyearweekday",
"utcyearweekdayhours",
"utcyearweekdayhoursminutes",
"utcyearweekdayhoursminutesseconds",
"utcyeardayofyear",
"utcquartermonth",
"utcmonthdate",
"utcmonthdatehours",
"utcmonthdatehoursminutes",
"utcmonthdatehoursminutesseconds",
"utcweekday",
"utcweekdayhours",
"utcweekdayhoursminutes",
"utcweekdayhoursminutesseconds",
"utcdayhours",
"utcdayhoursminutes",
"utcdayhoursminutesseconds",
"utchoursminutes",
"utchoursminutesseconds",
"utcminutesseconds",
"utcsecondsmilliseconds",
]
UtcSingleTimeUnit_T: TypeAlias = Literal[
"utcyear",
"utcquarter",
"utcmonth",
"utcweek",
"utcday",
"utcdayofyear",
"utcdate",
"utchours",
"utcminutes",
"utcseconds",
"utcmilliseconds",
]
WindowOnlyOp_T: TypeAlias = Literal[
"row_number",
"rank",
Expand Down
Loading

0 comments on commit 2d812af

Please sign in to comment.