betty.prop module¶
The property API.
- class betty.prop.HasProps¶
Bases:
objectAn object that has
properties.
- exception betty.prop.NotSettable¶
Bases:
OwnerErrorRaised when a property is not settable.
- __init__(prop: SettableProp[OwnerT, Any, Any], owner: OwnerT, /)¶
- exception betty.prop.OwnerError¶
Bases:
PropError,AttributeErrorRaised for property errors on a specific owner instance.
- class betty.prop.Prop¶
-
A property.
- abstractmethod get(owner: OwnerT, /) GetT¶
Get the property value from the owner.
- property prop: PropDefinition[OwnerT]¶
The property definition.