def __init__(self, autocomplete_list, data_provide):
        """Init autocompletion."""
        if callable(autocomplete_list):
            self.autocomplete_list = autocomplete_list()
        else:
            self.autocomplete_list = '["{}"]'.format(
                '","'.join(autocomplete_list))
        self.data_provide = data_provide
def __init__ ( self , autocomplete_list , data_provide ) : if callable ( autocomplete_list ) : self . autocomplete_list = autocomplete_list ( ) else : self . autocomplete_list = '["{}"]' . format ( '","' . join ( autocomplete_list ) ) self . data_provide = data_provide
Init autocompletion.