qteasy/_arg_validators.py
def _parse_string_kwargs(value, key, vkwargs):
    """ correct the type of value to the same of default type

    :param value:
    :param key:
    :param vkwargs:
    :return:
    """
    # 为防止value的类型不正确，将value修改为正确的类型，与 vkwargs 的
    # Default value 的类型相同
    if key not in vkwargs:
        return value
    if not isinstance(value, str):
        return value
    default_value = vkwargs[key]['Default']
    if (not isinstance(default_value, str)) and (default_value is not None):
        import ast
        value = ast.literal_eval(value)
    return value
 correct the type of value to the same of default type

    :param value:
    :param key:
    :param vkwargs:
    :return:
    
correct the type of value to the same of default type
correct the type of value to the same of default type
def _parse_string_kwargs(value, key, vkwargs):
    if key not in vkwargs:
        return value
    if not isinstance(value, str):
        return value
    default_value = vkwargs[key]['Default']
    if (not isinstance(default_value, str)) and (default_value is not None):
        import ast
        value = ast.literal_eval(value)
    return value
def _parse_string_kwargs ( value , key , vkwargs ) : if key not in vkwargs : return value if not isinstance ( value , str ) : return value default_value = vkwargs [ key ] [ 'Default' ] if ( not isinstance ( default_value , str ) ) and ( default_value is not None ) : import ast value = ast . literal_eval ( value ) return value
correct the type of value to the same of default type
correct the type of value to the same of default type
""" correct the type of value to the same of default type

    :param value:
    :param key:
    :param vkwargs:
    :return:
    """ # 为防止value的类型不正确，将value修改为正确的类型，与 vkwargs 的 # Default value 的类型相同
None
value
None
key
None
vkwargs
None