Skip to content

Commit

Permalink
refactor(typing): Utilize PrimitiveValue_T
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Oct 23, 2024
1 parent 1986932 commit 063fee9
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .data import data_transformers
from .display import VEGA_VERSION, VEGAEMBED_VERSION, VEGALITE_VERSION, renderers
from .schema import SCHEMA_URL, channels, core, mixins
from .schema._typing import Map
from .schema._typing import Map, PrimitiveValue_T
from .theme import themes

if sys.version_info >= (3, 14):
Expand Down Expand Up @@ -1440,14 +1440,7 @@ def selection(type: Optional[SelectionType_T] = Undefined, **kwds: Any) -> Param
def selection_interval(
name: str | None = None,
value: Optional[
str
| bool
| None
| float
| Temporal
| SchemaBase
| Sequence[SchemaBase | Map]
| Map
PrimitiveValue_T | Temporal | SchemaBase | Sequence[SchemaBase | Map] | Map
] = Undefined,
bind: Optional[Binding | str] = Undefined,
empty: Optional[bool] = Undefined,
Expand Down Expand Up @@ -1562,14 +1555,7 @@ def selection_interval(
def selection_point(
name: str | None = None,
value: Optional[
str
| bool
| None
| float
| Temporal
| SchemaBase
| Sequence[SchemaBase | Map]
| Map
PrimitiveValue_T | Temporal | SchemaBase | Sequence[SchemaBase | Map] | Map
] = Undefined,
bind: Optional[Binding | str] = Undefined,
empty: Optional[bool] = Undefined,
Expand Down

0 comments on commit 063fee9

Please sign in to comment.