Skip to main content

ConfigAttribute

Makes an attribute forward to the config

Attributes​

AttributeTypeDescription
namestrStores the name of the configuration key this attribute forwards to, used to access the corresponding value in the application's configuration.
get_converter`t.Callable[[t.Any], T]None`

Constructor​

Signature​

def ConfigAttribute(
name: str,
get_converter: t.Callable[[t.Any], T]| None = None
) - > null

Parameters​

NameTypeDescription
namestrThe name of the configuration attribute.
get_converter`t.Callable[[t.Any], T]None` = None