def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def __setitem__(self, key, value):
        self._collection[key] = self._from_python(key, value)