diff --git a/lib/iris/common/_split_attribute_dicts.py b/lib/iris/common/_split_attribute_dicts.py index 875ee3102f..41ce321a8f 100644 --- a/lib/iris/common/_split_attribute_dicts.py +++ b/lib/iris/common/_split_attribute_dicts.py @@ -105,7 +105,8 @@ def _inner_function(*args, **kwargs): result = operation(*args, **kwargs) - # Convert 'pairedkeys' dicts in the result back to split-attributes form. + # Convert known specific cases of 'pairedkeys' dicts in the result, and convert + # those back into split-attribute dictionaries. if isinstance(result, Mapping): # Fix a result which is a single dictionary -- for "combine" result = _convert_pairedkeys_dict_to_splitattrs(result) @@ -117,6 +118,7 @@ def _inner_function(*args, **kwargs): _convert_pairedkeys_dict_to_splitattrs(right), ) result = result.__class__([left, right]) + # ELSE: leave other types of result unchanged. E.G. None, bool return result