Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nayib-jose-gloria committed Feb 20, 2024
1 parent c382ee5 commit 2179ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ontology-builder/src/all_ontology_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _get_ancestors(onto_class: owlready2.entity.ThingClass, onto_name: str) -> S
:return list of ancestors (term ids), it could be empty
"""

def _get_branch_ancestors(term: owlready2.entity.ThingClass):
def _get_branch_ancestors(term: owlready2.entity.ThingClass) -> Set[str]:
# a branch ancestor is defined in ontology files as having a "part_of" (BFO_0000050) relationship with a term
branch_ancestors = set()
for subclass in term.is_a:
Expand Down

0 comments on commit 2179ebb

Please sign in to comment.