def _override_options(options, **overrides):
    """Override options."""
    for opt, val in overrides.items():
        passed_value = getattr(options, opt, _Default())
        if opt in ('ignore', 'select') and passed_value:
            value = process_value(opt, passed_value.value)
            value += process_value(opt, val)
            setattr(options, opt, value)
        elif isinstance(passed_value, _Default):
            setattr(options, opt, process_value(opt, val))
def _override_options ( options , ** overrides ) : for opt , val in overrides . items ( ) : passed_value = getattr ( options , opt , _Default ( ) ) if opt in ( 'ignore' , 'select' ) and passed_value : value = process_value ( opt , passed_value . value ) value += process_value ( opt , val ) setattr ( options , opt , value ) elif isinstance ( passed_value , _Default ) : setattr ( options , opt , process_value ( opt , val ) )
Override options.