multidispatch

Wrapper for compatibility with functools.singledispatch.

Usage

Source

multidispatch()

Only uses the [register][multimethod.multimethod.register] method instead of namespace lookup. Allows dispatching on keyword arguments based on the first function signature.

Methods

Name Description
__call__() Resolve and dispatch to best method.

__call__()

Resolve and dispatch to best method.

Usage

Source

__call__(*args, **kwargs)