Oop-ext

Latest version: v2.1.0

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

Scan your dependencies

Page 2 of 3

1.0.0

------------------

* ``Callbacks`` can be used as context manager, which provides a ``Register(callback, function)``,
which automatically unregisters all functions when the context manager ends.

* ``Callback.Register(function)`` now returns an object with a ``Unregister()`` method, which
can be used to undo the register call.

0.6.0

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

* Change back the default value of ``requires_declaration`` to ``True`` and fix an error (22) where the cache wasn't properly cleared.

0.5.1

------------------

* Fixes an issue (20) where mocked `classmethods` weren't considered a valid method during internal checks.

0.5.0

------------------

* Add optional argument ``requires_declaration`` so users can decide whether or not ``ImplementsInterface`` declarations are necessary.

0.4.0

------------------

* Implementations no longer need to explicitly declare that they declare an interface with ``ImplementsInterface``: the check is done implicitly (and cached) by `AssertImplements` and equivalent functions.

0.3.2

------------------

* Interface and implementation methods can no longer contain mutable defaults, as this is considered
a bad practice in general.

* ``Null`` instances are now hashable.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.