def combo_options_map(self, options_map: Optional[Mapping[str, ComboOptions]]) -> None: if options_map: groups_map = get_base_item_map(self._pattern_def, 'groups') self._combo_options_map = _expand_map_with_utterance_pattern_as_key( options_map, groups_map) # type: Optional[Mapping[str, ComboOptions]] else: self._combo_options_map = options_map
def combo_hooks_map(self, hooks_map: Optional[_C_H_MAP]) -> None: if hooks_map: groups_map = get_base_item_map(self._pattern_def, 'groups') self._combo_hooks_map = _expand_map_with_utterance_pattern_as_key( hooks_map, groups_map) # type: Optional[_C_H_MAP] else: self._combo_hooks_map = hooks_map