Skip to content

Commit 9d0579e

Browse files
committed
remove unnecessasry imports resulting from a branch split
1 parent 71785b8 commit 9d0579e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

linkml_runtime/utils/schemaview.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,6 @@ class SchemaUsage():
117117
inferred: bool = None
118118

119119

120-
def to_dict(obj):
121-
"""
122-
Convert a LinkML element (such as ClassDefinition) to a dictionary.
123-
124-
:param obj: The LinkML class instance to convert.
125-
:return: A dictionary representation of the class.
126-
"""
127-
if is_dataclass(obj):
128-
return asdict(obj)
129-
elif isinstance(obj, list):
130-
return [to_dict(item) for item in obj]
131-
elif isinstance(obj, dict):
132-
return {key: to_dict(value) for key, value in obj.items()}
133-
else:
134-
return obj
135-
136120
@dataclass
137121
class SchemaView(object):
138122
"""

0 commit comments

Comments
 (0)