code: def hms(self, warn=True):
          
          if warn and self.preference != 'hours':
              raise WrongUnitError('hms')
          sign, units, minutes, seconds = _sexagesimalize_to_float(self._hours)
          return sign * units, sign * minutes, sign * seconds
docs: Convert to a tuple (hours, minutes, seconds).
  
          All three quantities will have the same sign as the angle itself.