Reference¶
multimethod¶
-
class
multimethod.
multimethod
(func)[source]¶ Bases:
dict
A callable directed acyclic graph of methods.
-
__missing__
(types: tuple) → Callable[source]¶ Find and cache the next applicable method of given types.
-
static
__new__
(cls, func)[source]¶ Create and return a new object. See help(type) for accurate signature.
-
property
docstring
¶ a descriptive docstring of all registered functions
-
-
class
multimethod.
multidispatch
(func)[source]¶ Bases:
multimethod.multimethod
Provisional wrapper for future compatibility with functools.singledispatch.