def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def write(self) -> None:  # type: ignore[override]
        rval: None = super(SubmoduleConfigParser, self).write()
        self.flush_to_index()
        return rval