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 the key is not present in the ParamOverrides object, the method returns the provided default value instead.

Parameters:
  • key (str) – The name of the parameter or key to look up.

  • default (Any, optional) – The value to return if the specified key is not found. Default is None.

Returns:

The value associated with the key, or the default value if the key is not found.

Return type:

Any