with_config
No overview available.
def with_config(
config: ConfigDict
) - > Callable[[_TypeT], _TypeT]
Applies a configuration dictionary to a target object or function via a decorator pattern.
Parameters
| Name | Type | Description |
|---|---|---|
| config | ConfigDict | The configuration dictionary containing settings and parameters to be applied to the decorated target. |
Returns
| Type | Description |
|---|---|
Callable[[_TypeT], _TypeT] | A decorator function that accepts and returns the target type, applying the specified configuration during the wrapping process. |