Skip to content

Commit 992d619

Browse files
committed
refactor: simplify type hint for expr_list parameter in expr_list_to_raw_expr_list function
1 parent d78fdef commit 992d619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/datafusion/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _to_raw_expr(value: _typing.Union[Expr, str]) -> expr_internal.Expr:
304304

305305

306306
def expr_list_to_raw_expr_list(
307-
expr_list: Optional[_typing.Union[Sequence[_typing.Union[Expr, str]], Expr, str]],
307+
expr_list: Optional[list[Expr] | Expr],
308308
) -> Optional[list[expr_internal.Expr]]:
309309
"""Convert a sequence of expressions or column names to raw expressions."""
310310
if isinstance(expr_list, (Expr, str)):

0 commit comments

Comments
 (0)