def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def write(self) -> None:  # type: ignore[override]
        rval: None = super(SubmoduleConfigParser, self).write()
        self.flush_to_index()
        return rval