Skip to content

Commit 4da8a04

Browse files
committed
fix return type
1 parent 79c11de commit 4da8a04

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/keycloak/keycloak_admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3993,15 +3993,15 @@ def get_group_client_roles(self, group_id: str, client_id: str) -> list:
39933993
)
39943994
return raise_error_from_response(data_raw, KeycloakGetError)
39953995

3996-
def get_all_roles_of_group(self, group_id: str, brief_representation: bool = True) -> list:
3996+
def get_all_roles_of_group(self, group_id: str, brief_representation: bool = True) -> dict:
39973997
"""
39983998
Get all roles of a group.
39993999
40004000
:param group_id: id of the group
40014001
:type group_id: str
40024002
:param brief_representation: whether to omit role attributes in the response
40034003
:type brief_representation: bool
4004-
:return: Keycloak server response (array RoleRepresentation)
4004+
:return: Keycloak server response
40054005
:rtype: list
40064006
"""
40074007
params_path = {"realm-name": self.connection.realm_name, "id": group_id}
@@ -9297,15 +9297,15 @@ async def a_get_group_client_roles(self, group_id: str, client_id: str) -> list:
92979297
)
92989298
return raise_error_from_response(data_raw, KeycloakGetError)
92999299

9300-
async def a_get_all_roles_of_group(self, group_id: str, brief_representation: bool = True) -> list:
9300+
async def a_get_all_roles_of_group(self, group_id: str, brief_representation: bool = True) -> dict:
93019301
"""
93029302
Get all roles of a group asynchronously.
93039303
93049304
:param group_id: id of the group
93059305
:type group_id: str
93069306
:param brief_representation: whether to omit role attributes in the response
93079307
:type brief_representation: bool
9308-
:return: Keycloak server response (array RoleRepresentation)
9308+
:return: Keycloak server response
93099309
:rtype: list
93109310
"""
93119311
params_path = {"realm-name": self.connection.realm_name, "id": group_id}

0 commit comments

Comments
 (0)