Skip to content

Commit 5bd3843

Browse files
committed
typing: Jsons instead of List[Json]
1 parent 26083c5 commit 5bd3843

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arango/collection.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from arango.request import Request
4242
from arango.response import Response
4343
from arango.result import Result
44-
from arango.typings import Fields, Headers, Json, Params
44+
from arango.typings import Fields, Headers, Json, Params, Jsons
4545
from arango.utils import get_batches, get_doc_id, is_none_or_int, is_none_or_str
4646

4747

@@ -306,7 +306,7 @@ def configure(
306306
schema: Optional[Json] = None,
307307
replication_factor: Optional[int] = None,
308308
write_concern: Optional[int] = None,
309-
computed_values: Optional[List[Json]] = None,
309+
computed_values: Optional[Jsons] = None,
310310
) -> Result[Json]:
311311
"""Configure collection properties.
312312
@@ -979,7 +979,7 @@ def get_many(
979979
self,
980980
documents: Sequence[Union[str, Json]],
981981
allow_dirty_read: bool = False,
982-
) -> Result[List[Json]]:
982+
) -> Result[Jsons]:
983983
"""Return multiple documents ignoring any missing ones.
984984
985985
:param documents: List of document keys, IDs or bodies. Document bodies
@@ -1004,7 +1004,7 @@ def get_many(
10041004
headers={"x-arango-allow-dirty-read": "true"} if allow_dirty_read else None,
10051005
)
10061006

1007-
def response_handler(resp: Response) -> List[Json]:
1007+
def response_handler(resp: Response) -> Jsons:
10081008
if not resp.is_success:
10091009
raise DocumentGetError(resp, request)
10101010
return [doc for doc in resp.body if "_id" in doc]
@@ -1037,7 +1037,7 @@ def response_handler(resp: Response) -> Json:
10371037
# Index Management #
10381038
####################
10391039

1040-
def indexes(self) -> Result[List[Json]]:
1040+
def indexes(self) -> Result[Jsons]:
10411041
"""Return the collection indexes.
10421042
10431043
:return: Collection indexes.
@@ -1050,7 +1050,7 @@ def indexes(self) -> Result[List[Json]]:
10501050
params={"collection": self.name},
10511051
)
10521052

1053-
def response_handler(resp: Response) -> List[Json]:
1053+
def response_handler(resp: Response) -> Jsons:
10541054
if not resp.is_success:
10551055
raise IndexListError(resp, request)
10561056
result = resp.body["indexes"]

0 commit comments

Comments
 (0)