Skip to content

Commit

Permalink
fix syntax for 3.9 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Dec 13, 2023
1 parent e0d1815 commit 71d59a5
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions bmt/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,26 +680,17 @@ def get_permissible_value_parent(self, permissible_value: str, enum_name: str) -
return parent

@lru_cache(CACHE_SIZE)
def get_permissible_value_children(self, permissible_value: str, enum_name: str) -> str | PermissibleValueText | None | ValueError:
def get_permissible_value_children(self, permissible_value: str, enum_name: str) -> Union[
str, PermissibleValueText, None]:
"""
Get children of a permissible value.
This method returns a list containing all the children of a
permissible value of a given enum.
Parameters
----------
enum_name: str
The name of the enum
permissible_value: str
The name of the permissible value
Returns
-------
List[str]
A list of elements
Gets the children of a permissible value in an enumeration.
:param permissible_value: The permissible value to check.
:param enum_name: The name of the enumeration.
:return: The children of the permissible value.
:raises ValueError: If the permissible value or enum is not valid.
"""

children = self.view.permissible_value_children(permissible_value, enum_name)
return children

Expand Down

0 comments on commit 71d59a5

Please sign in to comment.