Skip to content

Commit 6ab77cc

Browse files
committed
Fixing test and lint
1 parent 09ee6ca commit 6ab77cc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

arangoasync/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ def deserializer(self) -> Deserializer[Json, Jsons]:
281281

282282
async def indexes(
283283
self,
284-
with_stats: Optional[bool],
285-
with_hidden: Optional[bool],
284+
with_stats: Optional[bool] = None,
285+
with_hidden: Optional[bool] = None,
286286
) -> Result[List[IndexProperties]]:
287287
"""Fetch all index descriptions for the given collection.
288288

arangoasync/database.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ async def create_collection(
596596
)
597597

598598
def response_handler(resp: Response) -> StandardCollection[T, U, V]:
599-
nonlocal doc_serializer, doc_deserializer
600599
if not resp.is_success:
601600
raise CollectionCreateError(resp, request)
602601
if doc_serializer is None:
@@ -648,7 +647,6 @@ async def delete_collection(
648647
)
649648

650649
def response_handler(resp: Response) -> bool:
651-
nonlocal ignore_missing
652650
if resp.is_success:
653651
return True
654652
if resp.status_code == HTTP_NOT_FOUND and ignore_missing:
@@ -1001,7 +999,6 @@ async def update_permission(
1001999
)
10021000

10031001
def response_handler(resp: Response) -> bool:
1004-
nonlocal ignore_failure
10051002
if resp.is_success:
10061003
return True
10071004
if ignore_failure:
@@ -1046,7 +1043,6 @@ async def reset_permission(
10461043
)
10471044

10481045
def response_handler(resp: Response) -> bool:
1049-
nonlocal ignore_failure
10501046
if resp.is_success:
10511047
return True
10521048
if ignore_failure:

0 commit comments

Comments
 (0)