def autocomplete_emojis(self, text: str, prefix_string: str ) -> List[str]: emoji_list = emoji_names.EMOJI_NAMES emoji_typeahead = [':{}:'.format(emoji) for emoji in emoji_list if match_emoji(emoji, text[1:])] return emoji_typeahead
def autocomplete_emojis(self, text: str, prefix_string: str) -> Tuple[List[str], List[str]]: emoji_list = emoji_names.EMOJI_NAMES emojis = [ emoji for emoji in emoji_list if match_emoji(emoji, text[1:]) ] emoji_typeahead = format_string(emojis, ':{}:') return emoji_typeahead, emojis