def append(self, item: TransItem):
if not (<NUM_LIT:1> <= item.index <= settings.I18N_MAX_SENTENCES_PER_GROUP):<EOL><INDENT>return<EOL><DEDENT>if len(self.sentences) < item.index:<EOL><INDENT>for _ in range(len(self.sentences), item.index):<EOL><INDENT>self.sentences.append(Sentence())<EOL><DEDENT><DEDENT>self.sentences[item.index - <NUM_LIT:1>].append(item)<EOL>
Append an item to the list. If there is not enough sentences in the
list, then the list is extended as needed.

There is no control made to make sure that the key is consistent.