docs: def history_add(self, value):
          """Add a value in the history
          """
          if self._history_max_size is None or self.history_len() < self._history_max_size:
              self._history.append(value)
          else:
              self._history = self._history[1:] + [value]