def return_type(self): ret = [str] # CF units conversion packages are optional. uc = get_units_class(should_raise=False) if uc is not None: ret.append(uc) return ret
def return_type(self): ret = [six.string_types] # CF units conversion packages are optional. uc = get_units_class(should_raise=False) if uc is not None: ret.append(uc) return ret
def input_types(self): # CF units conversion packages are optional. uc = get_units_class(should_raise=False) if uc is None: ret = [] else: ret = [uc] return ret