yaml2instance/main.py
def call_single(loading_data: dict, search_modules: List[ModuleType], **kwargs) -> Any:
    """From the list of modules, find the class written in yaml and instantiate it."""
    assert len(loading_data.keys()) == 1, "len(loading_data.keys()) != 1"
    if isinstance(loading_data, dict):
        for instance_or_function in _call_instance_or_function(
            loading_data, search_modules, **kwargs
        ):
            return instance_or_function
    else:
        TypeError
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules find the class written in yaml and instantiate it .
def call_single(loading_data: dict, search_modules: List[ModuleType], **kwargs) -> Any:
    assert len(loading_data.keys()) == 1, "len(loading_data.keys()) != 1"
    if isinstance(loading_data, dict):
        for instance_or_function in _call_instance_or_function(
            loading_data, search_modules, **kwargs
        ):
            return instance_or_function
    else:
        TypeError
def call_single ( loading_data : dict , search_modules : List [ ModuleType ] , ** kwargs ) -> Any : assert len ( loading_data . keys ( ) ) == 1 , "len(loading_data.keys()) != 1" if isinstance ( loading_data , dict ) : for instance_or_function in _call_instance_or_function ( loading_data , search_modules , ** kwargs ) : return instance_or_function else : TypeError
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules find the class written in yaml and instantiate it .
"""From the list of modules, find the class written in yaml and instantiate it."""
loading_data
dict
search_modules
List[ModuleType]