Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Oct 10, 2024
1 parent 3d2e3be commit b1f3bc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions strider/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ def __init__(self):
def get_descendants(self, concept, formatted=True, reflexive=True):
"""Wrapped BMT descendants function that does case conversions"""
if self.bmt.get_element(concept) is not None:
return self.bmt.get_descendants(concept, formatted=formatted, reflexive=reflexive)
return self.bmt.get_descendants(
concept, formatted=formatted, reflexive=reflexive
)
return [concept]

def get_ancestors(self, concept, formatted=True, reflexive=True):
"""Wrapped BMT ancestors function that does case conversions"""
if self.bmt.get_element(concept) is not None:
return self.bmt.get_ancestors(concept, formatted=formatted, reflexive=reflexive)
return self.bmt.get_ancestors(
concept, formatted=formatted, reflexive=reflexive
)
return [concept]

def predicate_is_symmetric(self, predicate):
Expand Down

0 comments on commit b1f3bc4

Please sign in to comment.