dicfg.config.ConfigValue#
- class ConfigValue(data: Any, merger: Callable | None = None, validator: ConfigValidator | None = None)[source]#
Bases:
object
Wraps a value into a ConfigValue
- Parameters:
data (Any) – value of the config
merger (Callable, optional) – Callable to merge the config value. Defaults to None.
- __init__(data: Any, merger: Callable | None = None, validator: ConfigValidator | None = None)[source]#
Methods
__init__
(data[, merger, validator])cast
()Cast wrapped value to builtin python value
merge
(b)Merges config b with it self
validate
()Validate the config
- merge(b: ConfigValue) ConfigValue [source]#
Merges config b with it self
- Parameters:
b (ConfigValue) – another config
- Returns:
self
- Return type: