(original_module, originals_map, placeholder)
return placeholders
Expand a wildcard placeholder to a sequence of named placeholders.

    :param original_module: The data dictionary of the module
        that the placeholder is imported from.
    :type original_module: dict
    :param originals_map: A map of the names of children under the module
        to their data dictionaries.
    :type originals_map: dict(str, dict)
    :param placeholder: The wildcard placeholder to expand.
    :type placeholder: dict

    :returns: The placeholders that the wildcard placeholder represents.
    :rtype: list(dict)
Expand a wildcard placeholder to a sequence of named placeholders.
Expand a wildcard placeholder to a sequence of named placeholders .
def _expand_wildcard_placeholder(original_module, originals_map, placeholder):
    """Expand a wildcard placeholder to a sequence of named placeholders.

    :param original_module: The data dictionary of the module
        that the placeholder is imported from.
    :type original_module: dict
    :param originals_map: A map of the names of children under the module
        to their data dictionaries.
    :type originals_map: dict(str, dict)
    :param placeholder: The wildcard placeholder to expand.
    :type placeholder: dict

    :returns: The placeholders that the wildcard placeholder represents.
    :rtype: list(dict)
    """
    originals = originals_map.values()
    if original_module["all"] is not None:
        originals = []
        for name in original_module["all"]:
            if name == "__all__":
                continue

            if name not in originals_map:
                msg = "Invalid __all__ entry {0} in {1}".format(
                    name, original_module["name"]
                )
                LOGGER.warning(msg, type="autoapi", subtype="python_import_resolution")
                continue

            originals.append(originals_map[name])

    placeholders = []
    for original in originals:
        new_full_name = placeholder["full_name"].replace("*", original["name"])
        new_original_path = placeholder["original_path"].replace("*", original["name"])
        if "original_path" in original:
            new_original_path = original["original_path"]
        new_placeholder = dict(
            placeholder,
            name=original["name"],
            full_name=new_full_name,
            original_path=new_original_path,
        )
        placeholders.append(new_placeholder)

    return placeholders
def _expand_wildcard_placeholder ( original_module , originals_map , placeholder ) : originals = originals_map . values ( ) if original_module [ "all" ] is not None : originals = [ ] for name in original_module [ "all" ] : if name == "__all__" : continue if name not in originals_map : msg = "Invalid __all__ entry {0} in {1}" . format ( name , original_module [ "name" ] ) LOGGER . warning ( msg , type = "autoapi" , subtype = "python_import_resolution" ) continue originals . append ( originals_map [ name ] ) placeholders = [ ] for original in originals : new_full_name = placeholder [ "full_name" ] . replace ( "*" , original [ "name" ] ) new_original_path = placeholder [ "original_path" ] . replace ( "*" , original [ "name" ] ) if "original_path" in original : new_original_path = original [ "original_path" ] new_placeholder = dict ( placeholder , name = original [ "name" ] , full_name = new_full_name , original_path = new_original_path , ) placeholders . append ( new_placeholder ) return placeholders