Multimethod provides a decorator for adding multiple argument dispatching to
functions. The decorator creates a multimethod object as needed, and registers
the function with its annotations.
There are several multiple dispatch libraries on PyPI. This one aims for
simplicity and speed. With caching of argument types, it should be the fastest
pure Python implementation possible.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-multimethod listed in the above command, you can pick from the names under the Packages section.
devel/py-multimethod: Add py-multimethod 1.12
Multimethod provides a decorator for adding multiple argument dispatching to
functions. The decorator creates a multimethod object as needed, and registers
the function with its annotations.
There are several multiple dispatch libraries on PyPI. This one aims for
simplicity and speed. With caching of argument types, it should be the fastest
pure Python implementation possible.