Skip to content

Commit c3261ed

Browse files
schloerkejonkeane
andauthored
Apply suggestions from code review
Co-authored-by: Jonathan Keane <[email protected]>
1 parent ba02668 commit c3261ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/posit/connect/permissions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ def get(self, uid: str) -> Permission:
150150
return Permission(self.params, **response.json())
151151

152152
def destroy(self, *permissions: str | Group | User | Permission) -> list[Permission]:
153-
"""Destroy supplied content item permissions.
153+
"""Remove supplied content item permissions.
154154
155155
Removes all provided permissions from the content item's permissions.
156156
157157
Parameters
158158
----------
159159
*permissions : str | Group | User | Permission
160160
The content item permissions to remove. If a `str` is received, it is compared against
161-
the Permissions' `principal_gruid`. If a `Group`, `User`, or `Permission` is received,
161+
the Permissions' `principal_guid`. If a `Group`, `User`, or `Permission` is received,
162162
the `guid` is used and compared against the Permissions' `principal_guid`. If a
163163
`Permission` is received, the `principal_guid` is used. Note, only the associated permissions will be destroyed; Any users or groups provided will remain.
164164
@@ -220,7 +220,7 @@ def destroy(self, *permissions: str | Group | User | Permission) -> list[Permiss
220220
principal_guid: str = arg["principal_guid"]
221221
else:
222222
raise TypeError(
223-
f"destroy() expected argument type 'str', 'Group', 'Permission' or 'User', but got '{type(arg).__name__}'",
223+
f"destroy() expected argument type 'str', 'User', 'Group', or 'Permission' but got '{type(arg).__name__}'",
224224
)
225225
principal_guids.add(principal_guid)
226226

0 commit comments

Comments
 (0)