Skip to content

Commit

Permalink
Merge pull request #162 from bento-platform/fix/service_info/immutabl…
Browse files Browse the repository at this point in the history
…e_service_org

fix(service_info): make service org pydantic model immutable
  • Loading branch information
davidlougheed authored Nov 30, 2023
2 parents de5cebe + 4cc4770 commit 4f44782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bento_lib/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_lib
version = 11.0.0a1
version = 11.0.0a2
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
3 changes: 2 additions & 1 deletion bento_lib/service_info/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class GA4GHServiceOrganization(TypedDict):
class GA4GHServiceOrganizationModel(BaseModel):
name: str
url: str
model_config = ConfigDict(extra="forbid")
# frozen=True makes this hashable + immutable
model_config = ConfigDict(extra="forbid", frozen=True)


# TODO: py3.11: Required[] instead of base class
Expand Down

0 comments on commit 4f44782

Please sign in to comment.