def __eq__(self, other): if type(other) != timezone: return False return self._offset == other._offset