Releases: RazerM/represent
Releases · RazerM/represent
1.6.0.post0
Changed
- Modernised packaging and ensure Python 3.8-3.9 are tested on CI. No
functional changes.
1.6.0
Added
autoreprandReprHelperMixinnow usereprlib.recursive_reprif
available. (#3)
Changed
autoreprnow assigns onenamedtupletocls._representinstead of using
three different class variables as before.
Fixed
- Deprecation warnings were always raised instead of only when deprecated
names were imported.
1.5.1
1.5.0
Added
autoreprclass decorator to replaceReprMixin.autorepris a much
cleaner solution, moving errors to class creation time instead of during
__init__. There are no caveats with pickling anymore.
Deprecated
The following names will raise deprecation warnings. They will be removed
completely in 2.0.0.
ReprMixinReprMixinBase
1.4.1
1.4.0
Added
BaseReprHelper, base class forReprHelperandPrettyReprHelperto handle common functionality and enforce same API and docstrings.BaseReprHelper.paranthesestuple can be set to something other than normal brackets, e.g.('<', '>')
Fixed
BaseReprHelper.keyword_from_attrparameter names swapped.attr_nameused to refer to keyword name, which doesn't make sense.
1.3.0
Added
ReprHelperMixinto simplify manual generation
Fixed
PrettyReprHelper.positional_from_attr()didn't check for cycle, causing recursion limit to be reached for self-referential objects.
1.2.1
1.2.0
Changed
RepresentationMixinhas been renamed toReprMixin.RepresentationHelperhas been renamed toReprHelper.PrettyRepresentationHelperhas been renamed toPrettyReprHelper.
Added
ReprMixinBaseis available if user does not want to inherit__getstate__and__setstate__fromReprMixin.- Documentation about Pickle support for
ReprMixin(#2)
Deprecated
These aliases will raise deprecation warnings:
RepresentationMixinRepresentationHelperPrettyRepresentationHelper