1.7.0 - Better support for non-deep-copiable default values in `@autofields`
-
@autofields
and@autoclass
now raise an error when a field definition can not be valid, because the default value can not be deep-copied. This will help users detect issues such as #84 earlier. Implementation is done through a newautocheck
option in thecopy_value
factory. -
@autofields
and@autoclass
now provide anexclude
(resp.af_exclude
) list, to list names for fields that should not be created. By default this contains a reserved name fromabc.ABCMeta
, for convenience. Fixes #84.
See documentation page for details.