Skip to main content

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

NameTypeDescription
configConfigDictThe configuration dictionary containing settings and parameters to be applied to the decorated target.

Returns

TypeDescription
Callable[[_TypeT], _TypeT]A decorator function that accepts and returns the target type, applying the specified configuration during the wrapping process.