We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31313dd commit 5ab6350Copy full SHA for 5ab6350
polars_xdt/typing.py
@@ -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