def _concat_same_dtype(self, to_concat, name):
attribs = self._get_attributes_dict()<EOL>attribs['<STR_LIT:name>'] = name<EOL>if len({str(x.dtype) for x in to_concat}) != <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>new_data = type(self._values)._concat_same_type(to_concat).asi8<EOL>is_diff_evenly_spaced = len(unique_deltas(new_data)) == <NUM_LIT:1><EOL>if not is_period_dtype(self) and not is_diff_evenly_spaced:<EOL><INDENT>attribs['<STR_LIT>'] = None<EOL><DEDENT>return self._simple_new(new_data, **attribs)<EOL>
Concatenate to_concat which has the same class.