From bd44c08547b29f459b251f5115636ca1bb0e5d49 Mon Sep 17 00:00:00 2001 From: tdstein Date: Wed, 10 Jul 2024 14:53:38 -0400 Subject: [PATCH] fix: correct type signature for group guid field --- src/posit/connect/groups.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/posit/connect/groups.py b/src/posit/connect/groups.py index b6c0857b..db43a45d 100644 --- a/src/posit/connect/groups.py +++ b/src/posit/connect/groups.py @@ -17,8 +17,8 @@ class Group(Resource): Attributes ---------- - guid : str - Unique identifier for the group. + guid: str | None + The unique identifier (guid) for the group. If None, the group only exists on the remote authentication server. Use `groups.create(temp_ticket=group.temp_ticket)` to create the group on the Connect server. name: str A human readable name for the group. owner_guid: str | None @@ -28,8 +28,8 @@ class Group(Resource): """ @property - def guid(self) -> str: - return self.get("guid") # type: ignore + def guid(self) -> str | None: + return self.get("guid") @property def name(self) -> str: @@ -37,11 +37,11 @@ def name(self) -> str: @property def owner_guid(self) -> str | None: - return self.get("owner_guid") # type: ignore + return self.get("owner_guid") @property def temp_ticket(self) -> str | None: - return self.get("temp_ticket") # type: ignore + return self.get("temp_ticket") # CRUD Methods