deepr.config.fill_references
- deepr.config.fill_references(item, references=None)[source]
Fill all params that are references, fail if not found.
Returns a new dictionary, tuple or list or item depending on item’s type.
Parameters that use the ref syntax “@reference” are replaced by the relevant entry from references (references[‘@reference’]).
If a reference is not found in references, raise ValueError
- Parameters:
item (Any) – Any item, but typically a Dict
references (Dict[str, Any], optional) – Mapping of names to reference objects
- Returns:
- Return type:
Any
- Raises:
ValueError – If some references are not found