Skip to content

Commit 1ed124a

Browse files
committed
Fixing Python 3.9 error
1 parent 0905be8 commit 1ed124a

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
@@ -9,7 +9,7 @@
99
import json
1010
import logging
1111
from contextlib import contextmanager
12-
from typing import Any, Iterator, Sequence, Union
12+
from typing import Any, Iterator, Optional, Sequence, Union
1313

1414
from arango.exceptions import DocumentParseError, SortValidationError
1515
from arango.typings import Json, Jsons
@@ -148,7 +148,7 @@ def validate_sort_parameters(sort: Sequence[Json]) -> bool:
148148
return True
149149

150150

151-
def build_sort_expression(sort: Jsons | None) -> str:
151+
def build_sort_expression(sort: Optional[Jsons]) -> str:
152152
"""Build a sort condition for an AQL query.
153153
154154
:param sort: Document sort parameters.

0 commit comments

Comments
 (0)