From 0f9971634c186acb4b2e7e7f52b58b280d310f91 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Tue, 26 Mar 2024 17:39:53 -0700 Subject: [PATCH] pass imports as kwarg to all_slots --- linkml_runtime/utils/schemaview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkml_runtime/utils/schemaview.py b/linkml_runtime/utils/schemaview.py index 99fdd5cf..3dfb2a4f 100644 --- a/linkml_runtime/utils/schemaview.py +++ b/linkml_runtime/utils/schemaview.py @@ -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)