Skip to content

Commit

Permalink
add getter and setters for id (for typing purposes)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekorman committed Aug 6, 2024
1 parent f94a879 commit 9256f74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions affine/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ def __post_init__(self):
)
self.id = None

@property
def id(self) -> str | None:
return self._id

@id.setter
def id(self, value: str):
self._id = value

@classmethod
def get_vector_fields(
cls: Type["Collection"],
Expand Down

0 comments on commit 9256f74

Please sign in to comment.