Skip to content

Commit

Permalink
refactor(ruff): Lint for 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Nov 4, 2024
1 parent 4c9851b commit a8e1ea1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions altair/vegalite/v5/_api_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# mypy: ignore-errors
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Dict, Literal, Mapping, Sequence, Union
from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, Any, Literal, Union
from typing_extensions import TypeAlias

from altair.utils.core import TYPECODE_MAP as _TYPE_CODE
Expand Down Expand Up @@ -49,15 +50,15 @@

EncodeType: TypeAlias = Union[Type_T, Literal["O", "N", "Q", "T", "G"], None]
AnyTimeUnit: TypeAlias = Union[MultiTimeUnit_T, BinnedTimeUnit_T, SingleTimeUnit_T]
TimeUnitType: TypeAlias = Optional[Union[Dict[str, Any], SchemaBase, AnyTimeUnit]]
TimeUnitType: TypeAlias = Optional[Union[dict[str, Any], SchemaBase, AnyTimeUnit]]
RangeType: TypeAlias = Union[
Dict[str, Any],
dict[str, Any],
Parameter,
SchemaBase,
Sequence[Union[Dict[str, Any], None, float, Parameter, SchemaBase]],
Sequence[Union[dict[str, Any], None, float, Parameter, SchemaBase]],
]
ValueType: TypeAlias = Union[str, bool, float, Dict[str, Any], Parameter, SchemaBase]
OneOfType: TypeAlias = Union[str, bool, float, Dict[str, Any], SchemaBase]
ValueType: TypeAlias = Union[str, bool, float, dict[str, Any], Parameter, SchemaBase]
OneOfType: TypeAlias = Union[str, bool, float, dict[str, Any], SchemaBase]


_ENCODINGS = frozenset(
Expand Down

0 comments on commit a8e1ea1

Please sign in to comment.