File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ def get_doc_id(doc: Union[str, Json]) -> str:
64
64
65
65
66
66
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.
68
68
69
69
:param obj: Object to check.
70
70
:type obj: Any
71
- :return: True if object is None or an integer.
71
+ :return: True if object is None or a positive integer.
72
72
:rtype: bool
73
73
"""
74
74
return obj is None or (isinstance (obj , int ) and obj >= 0 )
@@ -128,11 +128,11 @@ def build_filter_conditions(filters: Json) -> str:
128
128
return "FILTER " + " AND " .join (conditions )
129
129
130
130
131
- def validate_sort_parameters (sort : Sequence [ Json ] ) -> bool :
131
+ def validate_sort_parameters (sort : Jsons ) -> bool :
132
132
"""Validate sort parameters for an AQL query.
133
133
134
134
:param sort: Document sort parameters.
135
- :type sort: Sequence[Json]
135
+ :type sort: Jsons
136
136
:return: Validation success.
137
137
:rtype: bool
138
138
:raise arango.exceptions.SortValidationError: If sort parameters are invalid.
You can’t perform that action at this time.
0 commit comments