![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|

Public Member Functions | |
| None | register (self, Predicate predicate, Callable[..., Any] func, is_generator=False, takes_converter=False) |
| Callable[..., Any]|None | dispatch (self, Any typ) |
| int | get_num_fns (self) |
| None | copy_to (self, FunctionDispatch other, int skip=0) |
Protected Attributes | |
| _converter | |
| _handler_pairs | |
Static Protected Attributes | |
| BaseConverter | _converter |
| tuple | _handler_pairs |
FunctionDispatch is similar to functools.singledispatch, but
instead dispatches based on functions that take the type of the
first argument in the method, and return True or False.
objects that help determine dispatch should be instantiated objects.
:param converter: A converter to be used for factories that require converters.
.. versionchanged:: 24.1.0
Support for factories that require converters, hence this requires a
converter when creating.
| Callable[..., Any] | None cattrs.dispatch.FunctionDispatch.dispatch | ( | self, | |
| Any | typ | ||
| ) |
Return the appropriate handler for the object passed.
|
staticprotected |