Skip to content

Commit

Permalink
Merge pull request #301 from puja-trivedi/20240220_fixTypoInSchemaViewpy
Browse files Browse the repository at this point in the history
Fixed typos in schemview.py functions: delete_enum(), delete_slot(), delete_subset()
  • Loading branch information
cmungall authored Feb 22, 2024
2 parents 2ed0633 + a959a20 commit 16cdeb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkml_runtime/utils/schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,15 +1696,15 @@ 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:
"""
: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:
Expand All @@ -1720,7 +1720,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):
Expand Down

0 comments on commit 16cdeb9

Please sign in to comment.