def is_widget_required_attribute(widget):
 if (DBS3_SET_REQUIRED_SET_DISABLED and (not get_bootstrap_setting(u'set_required'))):
  return False
 if (not widget.is_required):
  return False
 if isinstance(widget, (AdminFileWidget, HiddenInput, FileInput, CheckboxInput, CheckboxSelectMultiple)):
  return False
 return True

def is_widget_required_attribute ( widget ) : if ( DBS3_SET_REQUIRED_SET_DISABLED and ( not get_bootstrap_setting ( u'set_required' ) ) ) : return False if ( not widget . is_required ) : return False if isinstance ( widget , ( AdminFileWidget , HiddenInput , FileInput , CheckboxInput , CheckboxSelectMultiple ) ) : return False return True
is this widget required? .