Objectextensions

Latest version: v2.0.2

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

Scan your dependencies

Page 1 of 2

2.0.2

- Updated wrapt dependency version for compatibility with python 3.11

No breaking changes.

2.0.1

- Misc minor improvements to various exception messages

No breaking changes.

2.0.0

- Extendable.extensions is now a class property (meaning it can now be read on the class itself rather than only on an instance)
- Extendable.extensions now returns a tuple rather than a frozenset, so that the order in which extensions were applied is preserved and extensions can be applied multiple times if necessary
- Extendable.with_extensions() has been improved in various minor ways; primarily, the returned class's __name__ attribute now indicates the base class and what extensions were applied
- Added tests for new functionality
- Minor edits to comments and docstrings

This release features breaking changes, as some of the values being returned by Extendable are now slightly different as a result of the above.

1.2.1

- Minor update to test suite
- Re-ordered Extension members: .can_extend() and .extend() should be hoisted to the top, and then the ordering should mimic that of a non-Extension class with wrapper methods going where the methods they wrap would be placed (etc.)

No breaking changes.

1.2.0

- Added Extension.set_property() and Extension._set_setter()
- Extension.extend() is now abstract rather than virtual (it is pointless to use Extension without overriding .extend())
- Extendable now has an _extensions attribute at all times, rather than just once it has been modified
- Extendable and Extension now implement ABC (there is no point in using them as-is with subclassing, so this change just indicates as much)
- Minor edits for clarity in docstrings
- Corrections to type hints
- Updated readme accordingly

No breaking changes.

1.1.0

- Added Extendable.extension_data property to allow reading a snapshot of extension data from outside the instance

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.