Skip to content
Open
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion linkml_runtime/utils/yamlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
for lek, lev in items(list_entry):
if lek == key_name and not isinstance(lev, (list, dict, JsonObj)):
# key_name:value
order_up(list_entry[lek], slot_type(list_entry))
order_up(list_entry[lek], slot_type(**list_entry))

Check warning on line 172 in linkml_runtime/utils/yamlutils.py

View check run for this annotation

Codecov / codecov/patch

linkml_runtime/utils/yamlutils.py#L172

Added line #L172 was not covered by tests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test that demonstrates the correctness of the fix?

break # Not strictly necessary, but
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove this line? not sure why it is in here

elif not isinstance(lev, (list, dict, JsonObj)):
# key: value --> slot_type(key, value)
Expand Down
Loading