def list_int_only(self, config, obj): if isinstance(obj, list): config.extend(obj) else: config.append(obj) return config
def list_type(self, config, obj): if isinstance(obj, list): return obj config.append(obj) return config