File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,8 @@ def deserializer(self) -> Deserializer[Json, Jsons]:
281
281
282
282
async def indexes (
283
283
self ,
284
- with_stats : Optional [bool ],
285
- with_hidden : Optional [bool ],
284
+ with_stats : Optional [bool ] = None ,
285
+ with_hidden : Optional [bool ] = None ,
286
286
) -> Result [List [IndexProperties ]]:
287
287
"""Fetch all index descriptions for the given collection.
288
288
Original file line number Diff line number Diff line change @@ -596,7 +596,6 @@ async def create_collection(
596
596
)
597
597
598
598
def response_handler (resp : Response ) -> StandardCollection [T , U , V ]:
599
- nonlocal doc_serializer , doc_deserializer
600
599
if not resp .is_success :
601
600
raise CollectionCreateError (resp , request )
602
601
if doc_serializer is None :
@@ -648,7 +647,6 @@ async def delete_collection(
648
647
)
649
648
650
649
def response_handler (resp : Response ) -> bool :
651
- nonlocal ignore_missing
652
650
if resp .is_success :
653
651
return True
654
652
if resp .status_code == HTTP_NOT_FOUND and ignore_missing :
@@ -1001,7 +999,6 @@ async def update_permission(
1001
999
)
1002
1000
1003
1001
def response_handler (resp : Response ) -> bool :
1004
- nonlocal ignore_failure
1005
1002
if resp .is_success :
1006
1003
return True
1007
1004
if ignore_failure :
@@ -1046,7 +1043,6 @@ async def reset_permission(
1046
1043
)
1047
1044
1048
1045
def response_handler (resp : Response ) -> bool :
1049
- nonlocal ignore_failure
1050
1046
if resp .is_success :
1051
1047
return True
1052
1048
if ignore_failure :
You can’t perform that action at this time.
0 commit comments