Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos in schemview.py functions: delete_enum(), delete_slot(), delete_subset() #301

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linkml_runtime/utils/schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,15 +1652,15 @@
:param slot_name: slot to be deleted
:return:
"""
del self.schema.slotes[slot_name]
del self.schema.slots[slot_name]

Check warning on line 1655 in linkml_runtime/utils/schemaview.py

View check run for this annotation

Codecov / codecov/patch

linkml_runtime/utils/schemaview.py#L1655

Added line #L1655 was not covered by tests
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]

Check warning on line 1663 in linkml_runtime/utils/schemaview.py

View check run for this annotation

Codecov / codecov/patch

linkml_runtime/utils/schemaview.py#L1663

Added line #L1663 was not covered by tests
self.set_modified()

def delete_type(self, type_name: TypeDefinitionName) -> None:
Expand All @@ -1676,7 +1676,7 @@
:param subset_name: subset to be deleted
:return:
"""
del self.schema.subsetes[subset_name]
del self.schema.subsets[subset_name]

Check warning on line 1679 in linkml_runtime/utils/schemaview.py

View check run for this annotation

Codecov / codecov/patch

linkml_runtime/utils/schemaview.py#L1679

Added line #L1679 was not covered by tests
self.set_modified()

# def rename(self, old_name: str, new_name: str):
Expand Down
Loading