prefect.utilities.dispatch
get_registry_for_type
None
is returned.
get_dispatch_key
__dispatch_key__
attribute. If it is a callable, it
will be resolved.
If allow_missing
is False
, an exception will be raised if the attribute is not
defined or the key is null. If True
, None
will be returned in these cases.
register_base_type
register_type
.
The base class may or may not define a __dispatch_key__
to allow lookups of the
base type.
register_type
__dispatch_key__
.
One of the classes base types must be registered using register_base_type
.
lookup_type