From a959a20c63b4b6e4861748fb0a4334d14a379db9 Mon Sep 17 00:00:00 2001 From: Puja Trivedi Date: Tue, 20 Feb 2024 17:07:00 -0800 Subject: [PATCH] fixed typos in delete_slot, delete_enum, and delete_subset (slotes -> slots, enumes -> enums, subsetes -> subsets) --- linkml_runtime/utils/schemaview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkml_runtime/utils/schemaview.py b/linkml_runtime/utils/schemaview.py index e792366a..0211feeb 100644 --- a/linkml_runtime/utils/schemaview.py +++ b/linkml_runtime/utils/schemaview.py @@ -1652,7 +1652,7 @@ def delete_slot(self, slot_name: SlotDefinitionName) -> None: :param slot_name: slot to be deleted :return: """ - del self.schema.slotes[slot_name] + del self.schema.slots[slot_name] self.set_modified() def delete_enum(self, enum_name: EnumDefinitionName) -> None: @@ -1660,7 +1660,7 @@ def delete_enum(self, enum_name: EnumDefinitionName) -> None: :param enum_name: enum to be deleted :return: """ - del self.schema.enumes[enum_name] + del self.schema.enums[enum_name] self.set_modified() def delete_type(self, type_name: TypeDefinitionName) -> None: @@ -1676,7 +1676,7 @@ def delete_subset(self, subset_name: SubsetDefinitionName) -> None: :param subset_name: subset to be deleted :return: """ - del self.schema.subsetes[subset_name] + del self.schema.subsets[subset_name] self.set_modified() # def rename(self, old_name: str, new_name: str):