Skip to content

Commit

Permalink
refactor(typing): Reuse _typing alias as InferredVegaLiteType
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jul 2, 2024
1 parent 1237df6 commit 60cd205
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions altair/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
if TYPE_CHECKING:
from types import ModuleType
import typing as t
from altair.vegalite.v5.schema._typing import StandardType_T as InferredVegaLiteType
from altair.utils._dfi_types import DataFrame as DfiDataFrame
from altair.utils.data import DataType
from narwhals.typing import IntoExpr
Expand Down Expand Up @@ -199,9 +200,6 @@ def __dataframe__(
]


InferredVegaLiteType = Literal["ordinal", "nominal", "quantitative", "temporal"]


def infer_vegalite_type_for_pandas(
data: object,
) -> InferredVegaLiteType | tuple[InferredVegaLiteType, list[Any]]:
Expand Down

0 comments on commit 60cd205

Please sign in to comment.