Skip to content

Commit

Permalink
Merge pull request #317 from sneakers-the-rat/fix-schemaview-orderedby
Browse files Browse the repository at this point in the history
[schemaview][bug] Pass `imports` as kwarg to `all_slots`
  • Loading branch information
cmungall authored Mar 28, 2024
2 parents 146d305 + 0f99716 commit b01abb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkml_runtime/utils/schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def slot_children(self, slot_name: SLOT_NAME, imports=True, mixins=True, is_a=Tr
:param is_a: include is_a parents (default is True)
:return: all direct child slot names (is_a and mixins)
"""
elts = [self.get_slot(x) for x in self.all_slots(imports)]
elts = [self.get_slot(x) for x in self.all_slots(imports=imports)]
return [x.name for x in elts if (x.is_a == slot_name and is_a) or (mixins and slot_name in x.mixins)]

@lru_cache(None)
Expand Down

0 comments on commit b01abb4

Please sign in to comment.