Skip to main content

get_origins

Maps each attribute in a dictionary of module definitions to its corresponding module name and returns the resulting dictionary.

def get_origins(
defs: dict
) - > dict

Maps individual attribute names back to their source module names based on a provided definitions dictionary.

Parameters

NameTypeDescription
defsdictA dictionary mapping module names to lists or sets of attribute names defined within them.

Returns

TypeDescription
dictA dictionary where each key is an attribute name and the value is the name of the module it originated from.