betty.attrs.default module

Attributes with default values.

final class betty.attrs.default.DefaultAttr

Bases: ProxyAttr, OwnerAttr, Generic

An attribute with a default value.

__init__(proxied: OwnerAttr, default: Callable[[], SetT] | Callable[[OwnerT], SetT], /)
init_owner(owner: OwnerT, /) None

Initialize the property on an owner.