code: def _end_of_week(self):
          
          dt = self
  
          if self.day_of_week != pendulum._WEEK_ENDS_AT:
              dt = self.next(pendulum._WEEK_ENDS_AT)
  
          return dt.end_of("day")
docs: Reset the date to the last day of the week
          and the time to 23:59:59.
  
          :rtype: DateTime