def best_for_flags(self, flags: Flags) -> List[TransItem]:
best_score: int = <NUM_LIT:0><EOL>best_list: List[TransItem] = []<EOL>for item in self.items:<EOL><INDENT>score = item.score(flags)<EOL>if score == best_score:<EOL><INDENT>best_list.append(item)<EOL><DEDENT>elif score > best_score:<EOL><INDENT>best_list = [item]<EOL>best_score = score<EOL><DEDENT><DEDENT>return best_list<EOL>
Given `flags`, find all items of this sentence that have an equal
matching score and put them in a list.