'Update bindings when the hint strings changed.
Args:
strings: A list of hint strings.
preserve_filter: Whether to keep the current value of
`self._filtertext`.'

def update_bindings(self, strings, preserve_filter=False):

    self.bindings = {s: s for s in strings}
    if (not preserve_filter):
        self._filtertext = ''
