Skip to content

Commit

Permalink
chore: add correct return type to get_credentials and a_get_credentia…
Browse files Browse the repository at this point in the history
…ls (#640)
  • Loading branch information
Liambeck99 authored Feb 23, 2025
1 parent 5bf8e60 commit f9138d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keycloak/keycloak_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def set_user_password(
expected_codes=[HTTP_NO_CONTENT],
)

def get_credentials(self, user_id: str) -> dict:
def get_credentials(self, user_id: str) -> list:
"""
Get user credentials.
Expand All @@ -882,7 +882,7 @@ def get_credentials(self, user_id: str) -> dict:
:param: user_id: user id
:type user_id: str
:returns: Keycloak server response (CredentialRepresentation)
:rtype: dict
:rtype: list
"""
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
data_raw = self.connection.raw_get(
Expand Down Expand Up @@ -6104,7 +6104,7 @@ async def a_set_user_password(
expected_codes=[HTTP_NO_CONTENT],
)

async def a_get_credentials(self, user_id: str) -> dict:
async def a_get_credentials(self, user_id: str) -> list:
"""
Get user credentials asynchronously.
Expand All @@ -6116,7 +6116,7 @@ async def a_get_credentials(self, user_id: str) -> dict:
:param: user_id: user id
:type user_id: str
:returns: Keycloak server response (CredentialRepresentation)
:rtype: dict
:rtype: list
"""
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
data_raw = await self.connection.a_raw_get(
Expand Down

0 comments on commit f9138d1

Please sign in to comment.