

def widget(self, column):
    '\n        Returns WTForms widget for given column.\n\n        :param column: SQLAlchemy Column object\n        '
    widget = column.info.get('widget', None)
    if (widget is not None):
        return widget
    kwargs = {
        
    }
    step = column.info.get('step', None)
    if (step is not None):
        column['step'] = step
    elif isinstance(column.type, sa.types.Numeric):
        if ((column.type.scale is not None) and (not column.info.get('choices'))):
            kwargs['step'] = self.scale_to_step(column.type.scale)
    if kwargs:
        widget_class = self.WIDGET_MAP[self.get_field_class(column)]
        return widget_class(**kwargs)

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.widget/VarMisuse@71/114 `kwargs`->`column`