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
| Name | Type | Description |
|---|---|---|
| defs | dict | A dictionary mapping module names to lists or sets of attribute names defined within them. |
Returns
| Type | Description |
|---|---|
dict | A dictionary where each key is an attribute name and the value is the name of the module it originated from. |