ConfigAttribute
Makes an attribute forward to the config
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | string | The 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
| Name | Type | Description |
|---|---|---|
| name | str | The 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
| Name | Type | Description |
|---|---|---|
| name | str | The key name in the application configuration dictionary to which this attribute forwards. |
| get_converter | `t.Callable[[t.Any], T] | None` = None |