Skip to content

Commit

Permalink
Merge pull request #76 from bento-platform/service-info-fixes
Browse files Browse the repository at this point in the history
Service info fixes
  • Loading branch information
davidlougheed authored Dec 8, 2022
2 parents fcff816 + 0a3e717 commit be5c420
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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 = 5.0.0
version = 5.0.1
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
17 changes: 13 additions & 4 deletions bento_lib/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

__all__ = [
"GA4GHServiceType",
"GA4GHServiceOrganization",
"GA4GHServiceInfo",
]


Expand All @@ -16,13 +18,20 @@ class GA4GHServiceOrganization(TypedDict):
url: str


class GA4GHServiceInfo(TypedDict):
# TODO: py3.11: Required[] instead of base class


class _GA4GHServiceInfoBase(TypedDict):
id: str
name: str
type: GA4GHServiceType
description: str
organization: GA4GHServiceOrganization
contactUrl: str
version: str
url: str


class GA4GHServiceInfo(_GA4GHServiceInfoBase, total=False):
description: str
contactUrl: str
documentationUrl: str
url: str # Technically not part of spec; comes from service-registry
environment: Union[Literal["dev"], Literal["prod"]]

0 comments on commit be5c420

Please sign in to comment.