(name: str)
return getattr(mod, class_name)
Reflectively obtains a type from a python identifier

    E.g.
        for_name("bento.extra.eslint.EslintTool")
    returns the EslintTool type

    Parameters:
        name (str): The type name, as a python fully qualified identifier
Reflectively obtains a type from a python identifier
Reflectively obtains a type from a python identifier
def for_name(name: str) -> Type:
    """
    Reflectively obtains a type from a python identifier

    E.g.
        for_name("bento.extra.eslint.EslintTool")
    returns the EslintTool type

    Parameters:
        name (str): The type name, as a python fully qualified identifier
    """
    module_name, class_name = name.rsplit(".", 1)
    mod = import_module(module_name)
    return getattr(mod, class_name)
def for_name ( name : str ) -> Type : module_name , class_name = name . rsplit ( "." , 1 ) mod = import_module ( module_name ) return getattr ( mod , class_name )