def bind_field(
        self,
        form: DynamicForm,
        unbound_field: UnboundField,
        options: Dict[Any, Any],
    ) -> Field:
    """
    Customize how fields are bound by stripping all whitespace.

    :param form: The form
    :param unbound_field: The unbound field
    :param options: The field options
    :returns: The bound field
    """

    filters = unbound_field.kwargs.get('filters', [])
    filters.append(lambda x: x.strip() if isinstance(x, str) else x)
    return unbound_field.bind(form=form, filters=filters, **options)
def bind_field ( self , form : DynamicForm , unbound_field : UnboundField , options : Dict [ Any , Any ] , ) -> Field : filters = unbound_field . kwargs . get ( 'filters' , [ ] ) filters . append ( lambda x : x . strip ( ) if isinstance ( x , str ) else x ) return unbound_field . bind ( form = form , filters = filters , ** options )
Customize how fields are bound by stripping all whitespace.

    :param form: The form
    :param unbound_field: The unbound field
    :param options: The field options
    :returns: The bound field