Skip to content

Commit edc2f42

Browse files
authored
chore: correct return type hint in get_all_roles_of_user and a_get_all_roles_of_user (#662)
1 parent 28b0c43 commit edc2f42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/keycloak/keycloak_admin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4049,14 +4049,14 @@ def delete_group_client_roles(self, group_id: str, client_id: str, roles: str |
40494049
expected_codes=[HTTP_NO_CONTENT],
40504050
)
40514051

4052-
def get_all_roles_of_user(self, user_id: str) -> list:
4052+
def get_all_roles_of_user(self, user_id: str) -> dict:
40534053
"""
40544054
Get all level roles for a user.
40554055
40564056
:param user_id: id of user
40574057
:type user_id: str
4058-
:return: Keycloak server response (array RoleRepresentation)
4059-
:rtype: list
4058+
:return: Keycloak server response (MappingsRepresentation)
4059+
:rtype: dict
40604060
"""
40614061
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
40624062
data_raw = self.connection.raw_get(
@@ -9361,14 +9361,14 @@ async def a_delete_group_client_roles(
93619361
expected_codes=[HTTP_NO_CONTENT],
93629362
)
93639363

9364-
async def a_get_all_roles_of_user(self, user_id: str) -> list:
9364+
async def a_get_all_roles_of_user(self, user_id: str) -> dict:
93659365
"""
93669366
Get all level roles for a user asynchronously.
93679367
93689368
:param user_id: id of user
93699369
:type user_id: str
9370-
:return: Keycloak server response (array RoleRepresentation)
9371-
:rtype: list
9370+
:return: Keycloak server response (MappingsRepresentation)
9371+
:rtype: dict
93729372
"""
93739373
params_path = {"realm-name": self.connection.realm_name, "id": user_id}
93749374
data_raw = await self.connection.a_raw_get(

0 commit comments

Comments
 (0)