Changelog¶
0.2.1 - bugfix¶
Fixed #4.
0.2.0 - field improvements¶
-
New
typeargument infieldto declare the type of a field. If provided, the descriptor will not be replaced with a native field, and the type will be checked on every value modification. ATypeErrorwill be raised if type does not comply. Type hints are correctly defined so that IDEs can pick them. Fixes #3 -
New
use_descriptorargument infieldto force use a descriptor instead of a native field.
0.1.0 - First public version¶
Mix-in basics:
fieldclass to easily define class fields in a mixin without defining a__init__.@apply_mixinsdecorator to apply mixins to a class without inheritance, by copying members (="monkeypatching")- Light documentation