Reference¶
multimethod¶
-
class
multimethod.multimethod(func)[source]¶ Bases:
dictA 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.multimethodProvisional wrapper for future compatibility with functools.singledispatch.