betty.attrs.default_collection module¶ Collection attributes with default values. final class betty.attrs.default_collection.DefaultCollectionAttr¶ Bases: ProxyAttr, OwnerAttr, Generic A collection attribute with a default value. __init__(proxied: CollectionAttrAttr[OwnerT, MutableCollectionT, ValuesSetT], default: Callable[[], ValuesSetT] | Callable[[OwnerT], ValuesSetT], /)¶ init_owner(owner: OwnerT, /) → None¶ Initialize the property on an owner.