Skip to content

Commit 31a648f

Browse files
committed
refactor: update docstring for sort_or_default function to clarify its purpose
1 parent f591617 commit 31a648f

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
@@ -309,7 +309,7 @@ def expr_list_to_raw_expr_list(
309309

310310

311311
def sort_or_default(e: Expr | SortExpr) -> expr_internal.SortExpr:
312-
"""Return a :class:`SortExpr`, defaulting attributes when necessary."""
312+
"""Helper function to return a default Sort if an Expr is provided."""
313313
if isinstance(e, SortExpr):
314314
return e.raw_sort
315315
return SortExpr(e, ascending=True, nulls_first=True).raw_sort

0 commit comments

Comments
 (0)