Methoddispatch

Latest version: v5.0.1

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

Scan your dependencies

5.0.0

Handle multiple inheritance properly.
Support simple type annotations e.g. list[int] (but only use list)

Ooops - missed v4.

3.0

Drops support for plain functions.
Deprecates module register function in favour of BaseClass.method.register()
Supports per-instance dispatch registries.

2.0.0

* Added support for annotations as per python 3.7 [functools.singledispatch](https://docs.python.org/3/library/functools.html#functools.singledispatch) to Python 3.6+
* Use ``__init_subclass__`` instead of a meta class for Python 3.6+
* Allow using actual method instead of method name in ``register()`` function
* Fixed missing ``dispatch`` and ``registry`` attributes on method objects.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.