(self, choices)
choices must be passed in in desired sort order
choices must be passed in in desired sort order
choices must be passed in in desired sort order
def __init__(self, choices):
        """
        choices must be passed in in desired sort order
        """
        self.choices = [
            choice if isinstance(choice, SearchableChoice)
            else SearchableChoice(
                choice.value, choice.display,
                searchable_text=[choice.display]
            )
            for choice in choices
        ]
        super(StaticChoiceProvider, self).__init__(None, None)
def __init__ ( self , choices ) : self . choices = [ choice if isinstance ( choice , SearchableChoice ) else SearchableChoice ( choice . value , choice . display , searchable_text = [ choice . display ] ) for choice in choices ] super ( StaticChoiceProvider , self ) . __init__ ( None , None )