merging module¶
Utilities for merging.
parse_merge_func function¶
Parser the merging function from the function's annotations.
MergeFunc class¶
Class representing a merging function and its keyword arguments.
Can be directly called to call the underlying (already resolved and with keyword arguments attached) merging function.
Superclasses
Inherited members
- Base.chat
- Base.find_api
- Base.find_assets
- Base.find_docs
- Base.find_examples
- Base.find_messages
- DefineMixin.asdict
- DefineMixin.assert_field_not_missing
- DefineMixin.fields
- DefineMixin.fields_dict
- DefineMixin.get_field
- DefineMixin.hash
- DefineMixin.hash_key
- DefineMixin.is_field_missing
- DefineMixin.is_field_optional
- DefineMixin.is_field_required
- DefineMixin.merge_over
- DefineMixin.merge_with
- DefineMixin.replace
- DefineMixin.resolve
- DefineMixin.resolve_field
- Evaluable.meets_eval_id
- Hashable.get_hash
context field¶
Context for substituting templates in MergeFunc.merge_func and MergeFunc.merge_kwargs.
eval_id field¶
One or more identifiers at which to evaluate this instance.
eval_id_prefix field¶
Prefix for the substitution id.
merge_func field¶
Merging function.
merge_kwargs field¶
Keyword arguments passed to the merging function.
resolve_merge_func method¶
Get the merging function where keyword arguments are hard-coded.