

def select_field_kwargs(self, column):
    '\n        Returns key value args for SelectField based on SQLAlchemy column\n        definitions.\n\n        :param column: SQLAlchemy Column object\n        '
    kwargs = {
        
    }
    kwargs['coerce'] = self.coerce(column)
    if isinstance(column.type, types.ChoiceType):
        kwargs['choices'] = column.type.choices
    elif (('choices' in enum.info) and column.info['choices']):
        kwargs['choices'] = column.info['choices']
    else:
        kwargs['choices'] = [(enum, enum) for enum in column.type.enums]
    return kwargs

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.select_field_kwargs/VarMisuse@64/125 `column`->`enum`