File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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:
6464
6565
6666def 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.
You can’t perform that action at this time.
0 commit comments