(config_dict, item_type=None)
return config_items[item_type or config_dict['type']](config_dict)
Convert a normal variable into a config item.
Convert a normal variable into a config item.
Convert a normal variable into a config item .
def create_config_item(config_dict, item_type=None):
    """Convert a normal variable into a config item."""
    config_items = {str: _ConfigItemStr, unicode: _ConfigItemStr, int: _ConfigItemInt, float: _ConfigItemFloat, bool: _ConfigItemBool}
    return config_items[item_type or config_dict['type']](config_dict)
def create_config_item ( config_dict , item_type = None ) : config_items = { str : _ConfigItemStr , unicode : _ConfigItemStr , int : _ConfigItemInt , float : _ConfigItemFloat , bool : _ConfigItemBool } return config_items [ item_type or config_dict [ 'type' ] ] ( config_dict )