From f9138d11c1b95f9de298f3fc816734af6a41607b Mon Sep 17 00:00:00 2001 From: Liam Beckingham <57397563+Liambeck99@users.noreply.github.com> Date: Sun, 23 Feb 2025 20:37:14 +0000 Subject: [PATCH] chore: add correct return type to get_credentials and a_get_credentials (#640) --- src/keycloak/keycloak_admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index e79a0b5..5edda6b 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -870,7 +870,7 @@ class KeycloakAdmin: expected_codes=[HTTP_NO_CONTENT], ) - def get_credentials(self, user_id: str) -> dict: + def get_credentials(self, user_id: str) -> list: """ Get user credentials. @@ -882,7 +882,7 @@ class KeycloakAdmin: :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( @@ -6104,7 +6104,7 @@ class KeycloakAdmin: 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. @@ -6116,7 +6116,7 @@ class KeycloakAdmin: :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(