def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])