def from_message(cls, message='> '):
        """
        Create a default prompt with a static message text.
        """
        assert isinstance(message, text_type)

        def get_message_tokens(cli):
            return [(Token.Prompt, message)]
        return cls(get_message_tokens)
def from_message ( cls , message = '> ' ) : assert isinstance ( message , text_type ) def get_message_tokens ( cli ) : return [ ( Token . Prompt , message ) ] return cls ( get_message_tokens )
Create a default prompt with a static message text.