Skip to content

Commit cb6957a

Browse files
committed
Fix default arg for revoke_key in deactivate
1 parent 40dacae commit cb6957a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

weaviate/users/async_.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class _UsersDBAsync(_DBExecutor[ConnectionAsync]):
4040
async def create(self, *, user_id: str) -> str: ...
4141
async def delete(self, *, user_id: str) -> bool: ...
4242
async def rotate_key(self, *, user_id: str) -> str: ...
43-
async def deactivate(self, *, user_id: str, revoke_key: bool) -> bool: ...
43+
async def deactivate(self, *, user_id: str, revoke_key: bool = False) -> bool: ...
4444
async def activate(self, *, user_id: str) -> bool: ...
4545
async def get(self, *, user_id: str) -> UserDB: ...
4646
async def list_all(self) -> List[UserDB]: ...

weaviate/users/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def resp(res: Response) -> bool:
404404
status_codes=_ExpectedStatusCodes(ok_in=[200, 409], error="Activate user"),
405405
)
406406

407-
def deactivate(self, *, user_id: str, revoke_key: bool) -> executor.Result[bool]:
407+
def deactivate(self, *, user_id: str, revoke_key: bool = False) -> executor.Result[bool]:
408408
"""Deactivate an active user.
409409
410410
Args:

0 commit comments

Comments
 (0)