Skip to content

Commit 856743a

Browse files
author
Deniz Alpaslan
committed
update utils.py for build_sort_expression to accept Jsons or None
1 parent 71776c3 commit 856743a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arango/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ def validate_sort_parameters(sort: Sequence[Json]) -> bool:
148148
return True
149149

150150

151-
def build_sort_expression(sort: Jsons) -> str:
151+
def build_sort_expression(sort: Jsons | None) -> str:
152152
"""Build a sort condition for an AQL query.
153153
154154
:param sort: Document sort parameters.
155-
:type sort: Jsons
155+
:type sort: Jsons | None
156156
:return: The complete AQL sort condition.
157157
:rtype: str
158158
"""

0 commit comments

Comments
 (0)