

def create_question(self, question, type=None, **kwargs):
    '\n        Returns a Question of specified type.\n\n        :param type: The type of the question\n        :type type: str\n\n        :rtype: mixed\n        '
    if (not type):
        return Question(question, **kwargs)
    if (type == 'choice'):
        return ChoiceQuestion(question, **kwargs)
    if (kwargs == 'confirmation'):
        return ConfirmationQuestion(question, **kwargs)

dataset/ETHPy150Open sdispater/cleo/cleo/commands/command.py Command.create_question/VarMisuse@60/124 `type`->`kwargs`