resolve_dict()

Return a dictionary unchanged, or load one from a JSON file path.

Usage

Source

resolve_dict(value)

Parameters

value: dict | str | Path
Dictionary, or path to a JSON file containing a dictionary.

Returns

dict
The supplied dictionary or the dictionary loaded from the file.