Skip to content

Commit

Permalink
Improve docs of gen_linkml.translate_defs()
Browse files Browse the repository at this point in the history
  • Loading branch information
candleindark committed Aug 12, 2024
1 parent 923bb22 commit ef0605e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pydantic2linkml/gen_linkml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,13 @@ def _computed_field_schema(self, schema: core_schema.ComputedField) -> None:
def translate_defs(module_names: Iterable[str]) -> SchemaDefinition:
"""
Translate Python objects, in the named modules and their submodules loaded to
`sys.modules`, to LinkML
`sys.modules`, to LinkML
:param module_names: The names to specify the modules and their submodules
:return: A `SchemaDefinition` object representing the expressions of the
Python objects in LinkML
Note: The types of objects translated are those fetched by `tools.fetch_defs()`
"""
# Eliminate duplicates in the module names
if type(module_names) is not set:
Expand Down

0 comments on commit ef0605e

Please sign in to comment.