Extendable

Latest version: v1.2.2

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

Scan your dependencies

Page 1 of 2

1.2.2

==================

Bugfixes
--------

- Fix error when a class is extended to add others aggregated classes as parent
classes. Before this fix, the builder used the list of all base classes of
the final class as base classes for every class into the hierarchy. (`15 <https://github.com/lmignon/extendable/issues/15>`_)

1.2.1

==================

Bugfixes
--------

- Fix isinstance and issublcass method on multi levels inheritance hierarchy. (`14 <https://github.com/lmignon/extendable/pull/14>`_)

1.2.0

==================

Features
--------

- Add a `before_init_registry` hook method into the `ExtendableRegistryListener` class.
This methods allows you to udpate the list of modules to load into the registry if
you need to do so. (`before_hook <https://github.com/lmignon/extendable/pull/13>`_)

1.1.0

==================

Features
--------

- Simpler syntax for defining a class extending another class. The `extends` parameter now accepts `True` as its value. `class PersonExt(Person, extends=True)` means that `PersonExt` extends its first base class: `Person`. This is equivalent to `class PersonExt(Person, extends=Person)`. (`2 <https://github.com/lmignon/extendable/issues/2>`_)

1.0.0

==================

Features
--------

- Access to the context variable used to store the current extended Classes
returns None if no context is available. Previously the access to the context
throws an exception if no context was available.
- Calls to the classmethod "_get_assembled_cls" now raises RegistryNotInitializedError
if the registry is not initialized.
- The metadaclass now provides the method `_wrap_class_method`. This method
can be used to wrap class methods in a way that when the method is called
the logic is delegated to the aggregated class if it exists.

0.0.5

==================

Bugfixes
--------

- Preserve kwargs values in class defintion to ensure to properly create a concrete class with the same attributes as the original one.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.