Skip to content

Commit

Permalink
remove unnecessasry imports resulting from a branch split
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Oct 2, 2024
1 parent 71785b8 commit 9d0579e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions linkml_runtime/utils/schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,6 @@ class SchemaUsage():
inferred: bool = None


def to_dict(obj):
"""
Convert a LinkML element (such as ClassDefinition) to a dictionary.
:param obj: The LinkML class instance to convert.
:return: A dictionary representation of the class.
"""
if is_dataclass(obj):
return asdict(obj)
elif isinstance(obj, list):
return [to_dict(item) for item in obj]
elif isinstance(obj, dict):
return {key: to_dict(value) for key, value in obj.items()}
else:
return obj

@dataclass
class SchemaView(object):
"""
Expand Down

0 comments on commit 9d0579e

Please sign in to comment.