Skip to content

Commit

Permalink
fix: correct type signature for group guid field
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jul 10, 2024
1 parent 2c99f31 commit bd44c08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/posit/connect/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,20 +28,20 @@ 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:
return self.get("name") # type: ignore

@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

Expand Down

0 comments on commit bd44c08

Please sign in to comment.