param.ParamOverrides.get#
- ParamOverrides.get(key: str, default: Any = None) Any[source]#
Retrieve the value for a given key, with a default if the key is not found.
This method attempts to retrieve the value associated with the specified
key. If thekeyis not present in theParamOverridesobject, the method returns the provideddefaultvalue instead.- Parameters:
key (str) – The name of the parameter or key to look up.
default (Any, optional) – The value to return if the specified
keyis not found. Default isNone.
- Returns:
The value associated with the
key, or thedefaultvalue if thekeyis not found.- Return type:
Any