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
autorepr
andReprHelperMixin
now usereprlib.recursive_repr
if
available. (#3)
Changed
autorepr
now assigns onenamedtuple
tocls._represent
instead 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
autorepr
class decorator to replaceReprMixin
.autorepr
is 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.
ReprMixin
ReprMixinBase
1.4.1
1.4.0
Added
BaseReprHelper
, base class forReprHelper
andPrettyReprHelper
to handle common functionality and enforce same API and docstrings.BaseReprHelper.parantheses
tuple can be set to something other than normal brackets, e.g.('<', '>')
Fixed
BaseReprHelper.keyword_from_attr
parameter names swapped.attr_name
used to refer to keyword name, which doesn't make sense.
1.3.0
Added
ReprHelperMixin
to 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
RepresentationMixin
has been renamed toReprMixin
.RepresentationHelper
has been renamed toReprHelper
.PrettyRepresentationHelper
has been renamed toPrettyReprHelper
.
Added
ReprMixinBase
is 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:
RepresentationMixin
RepresentationHelper
PrettyRepresentationHelper