Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 952dfe1

Browse files
authored
Update roles.py
fixes auth0#545 Signed-off-by: Adam Mcgrath <[email protected]>
1 parent fdacd37 commit 952dfe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth0/management/roles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def list_permissions(
211211
url = self._url(f"{id}/permissions")
212212
return self.client.get(url, params=params)
213213

214-
def remove_permissions(self, id: str, permissions: List[str]) -> Any:
214+
def remove_permissions(self, id: str, permissions: List[dict[str, str]]) -> Any:
215215
"""Unassociates permissions from a role.
216216
217217
Args:
@@ -225,7 +225,7 @@ def remove_permissions(self, id: str, permissions: List[str]) -> Any:
225225
body = {"permissions": permissions}
226226
return self.client.delete(url, data=body)
227227

228-
def add_permissions(self, id: str, permissions: List[str]) -> dict[str, Any]:
228+
def add_permissions(self, id: str, permissions: List[dict[str, str]]) -> dict[str, Any]:
229229
"""Associates permissions with a role.
230230
231231
Args:

0 commit comments

Comments
 (0)