Skip to content

Commit f9138d1

Browse files
authored
chore: add correct return type to get_credentials and a_get_credentials (#640)
1 parent 5bf8e60 commit f9138d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/keycloak/keycloak_admin.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def set_user_password(
870870
expected_codes=[HTTP_NO_CONTENT],
871871
)
872872

873-
def get_credentials(self, user_id: str) -> dict:
873+
def get_credentials(self, user_id: str) -> list:
874874
"""
875875
Get user credentials.
876876
@@ -882,7 +882,7 @@ def get_credentials(self, user_id: str) -> dict:
882882
:param: user_id: user id
883883
:type user_id: str
884884
:returns: Keycloak server response (CredentialRepresentation)
885-
:rtype: dict
885+
:rtype: list
886886
"""
887887
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
888888
data_raw = self.connection.raw_get(
@@ -6104,7 +6104,7 @@ async def a_set_user_password(
61046104
expected_codes=[HTTP_NO_CONTENT],
61056105
)
61066106

6107-
async def a_get_credentials(self, user_id: str) -> dict:
6107+
async def a_get_credentials(self, user_id: str) -> list:
61086108
"""
61096109
Get user credentials asynchronously.
61106110
@@ -6116,7 +6116,7 @@ async def a_get_credentials(self, user_id: str) -> dict:
61166116
:param: user_id: user id
61176117
:type user_id: str
61186118
:returns: Keycloak server response (CredentialRepresentation)
6119-
:rtype: dict
6119+
:rtype: list
61206120
"""
61216121
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
61226122
data_raw = await self.connection.a_raw_get(

0 commit comments

Comments
 (0)