code: def _get_value_type(self, other):
          
          if self.values:
              return type(self.values[0])
          elif isinstance(other, TimeSeries) and other.values:
              return type(other.values[0])
          else:
              raise ValueError('Cannot perform arithmetic on empty time series.')
docs: Get the object type of the value within the values portion of the time series.
  
          :return: `type` of object