Skip to content

Commit

Permalink
update polars rust
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Aug 14, 2024
1 parent 31313dd commit 5ab6350
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions polars_xdt/typing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import TYPE_CHECKING, Union

if TYPE_CHECKING:
import sys
import polars as pl

if sys.version_info >= (3, 10):
from typing import TypeAlias
else:
from typing_extensions import TypeAlias
from polars.datatypes import DataType, DataTypeClass

IntoExpr: TypeAlias = Union[pl.Expr, str, pl.Series]
PolarsDataType: TypeAlias = Union[DataType, DataTypeClass]

0 comments on commit 5ab6350

Please sign in to comment.