(tmp_objs)
| 33 | |
| 34 | @staticmethod |
| 35 | def cat(tmp_objs): |
| 36 | assert all(isinstance(results, TmpObject) for results in tmp_objs) |
| 37 | if len(tmp_objs) == 1: |
| 38 | return tmp_objs[0] |
| 39 | tmp_list = [tmp_obj.tmp for tmp_obj in tmp_objs] |
| 40 | tmp_list = list(itertools.chain(*tmp_list)) |
| 41 | new_data = TmpObject(tmp_list) |
| 42 | return new_data |
| 43 | |
| 44 | def __repr__(self): |
| 45 | return str(self.tmp) |