docs: def delete_date(self, date):
          """
          Remove the date line from the textual representation. This doesn't
          remove any entry line.
          """
          self.lines = [
              line for line in self.lines
              if not isinstance(line, DateLine) or line.date != date
          ]
  
          self.lines = trim(self.lines)