Represent

Latest version: v2.1

Safety actively analyzes 688844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.3.0

Added
- `ReprHelperMixin` to simplify [manual generation](http://pythonhosted.org/Represent/usage/helper/)

Fixed
- `PrettyReprHelper.positional_from_attr()` didn't check for cycle, causing recursion limit to be reached for self-referential objects.

1.2.1

Fixed
- `__init__.py` was missing from represent.compat, so wasn't packaged for PyPI.

1.2.0

Changed
- `RepresentationMixin` has been renamed to `ReprMixin`.
- `RepresentationHelper` has been renamed to `ReprHelper`.
- `PrettyRepresentationHelper` has been renamed to `PrettyReprHelper`.

Added
- `ReprMixinBase` is available if user does not want to inherit `__getstate__` and `__setstate__` from `ReprMixin`.
- Documentation about Pickle support for `ReprMixin` (2)

Deprecated

These aliases will raise deprecation warnings:
- `RepresentationMixin`
- `RepresentationHelper`
- `PrettyRepresentationHelper`

1.1.0

- Add pickle support by instantiating `RepresentationMixin` in `__setstate__`.

1.0.2

- Improve control flow for class variable check, which could previously cause a bug if assertions were disabled.

1.0.1

- Remove extra print statement (1)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.