def update(self, group: '<STR_LIT>', flags: Flags) -> None:
to_append = []<EOL>for old, new in zip_longest(self.sentences, group.sentences):<EOL><INDENT>if old is None:<EOL><INDENT>old = Sentence()<EOL>to_append.append(old)<EOL><DEDENT>if new is None:<EOL><INDENT>new = Sentence()<EOL><DEDENT>old.update(new, flags)<EOL><DEDENT>self.sentences.extend(to_append)<EOL>
This object is considered to be a "global" sentence group while the
other one is flags-specific. All data related to the specified flags
will be overwritten by the content of the specified group.