Skip to content

Commit 5ab6350

Browse files
committed
update polars rust
1 parent 31313dd commit 5ab6350

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

polars_xdt/typing.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from typing import TYPE_CHECKING, Union
2+
3+
if TYPE_CHECKING:
4+
import sys
5+
import polars as pl
6+
7+
if sys.version_info >= (3, 10):
8+
from typing import TypeAlias
9+
else:
10+
from typing_extensions import TypeAlias
11+
from polars.datatypes import DataType, DataTypeClass
12+
13+
IntoExpr: TypeAlias = Union[pl.Expr, str, pl.Series]
14+
PolarsDataType: TypeAlias = Union[DataType, DataTypeClass]

0 commit comments

Comments
 (0)