def values(opt, pattern): scoped_values = [ configutils.ScopedValue('global value', None), configutils.ScopedValue('example value', pattern) ] return configutils.Values(opt, scoped_values)
def mixed_values(opt, pattern): scoped_values = [ configutils.ScopedValue('global value', None), configutils.ScopedValue('example value', pattern, hide_userconfig=True) ] return configutils.Values(opt, scoped_values)