Skip to main content

ConfigAttribute

Makes an attribute forward to the config

Attributes​

AttributeTypeDescription
namestringThe name of the configuration key that this attribute forwards to and retrieves from the application's config dictionary.
get_converter`t.Callable[[t.Any], T]None` = None

Constructor​

Signature​

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

Parameters​

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

Signature​

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

Parameters​

NameTypeDescription
namestrThe key name in the application configuration dictionary to which this attribute forwards.
get_converter`t.Callable[[t.Any], T]None` = None