Skip to content

Commit f27348d

Browse files
committed
Minor adjustments
1 parent d5ae65d commit f27348d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arango/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ def get_doc_id(doc: Union[str, Json]) -> str:
6464

6565

6666
def is_none_or_int(obj: Any) -> bool:
67-
"""Check if obj is None or an integer.
67+
"""Check if obj is None or a positive integer.
6868
6969
:param obj: Object to check.
7070
:type obj: Any
71-
:return: True if object is None or an integer.
71+
:return: True if object is None or a positive integer.
7272
:rtype: bool
7373
"""
7474
return obj is None or (isinstance(obj, int) and obj >= 0)
@@ -128,11 +128,11 @@ def build_filter_conditions(filters: Json) -> str:
128128
return "FILTER " + " AND ".join(conditions)
129129

130130

131-
def validate_sort_parameters(sort: Sequence[Json]) -> bool:
131+
def validate_sort_parameters(sort: Jsons) -> bool:
132132
"""Validate sort parameters for an AQL query.
133133
134134
:param sort: Document sort parameters.
135-
:type sort: Sequence[Json]
135+
:type sort: Jsons
136136
:return: Validation success.
137137
:rtype: bool
138138
:raise arango.exceptions.SortValidationError: If sort parameters are invalid.

0 commit comments

Comments
 (0)