pyconfs/_converters.py
def convert_to(dtype, value):
    """Convert value to the given type"""
    try:
        return convert(f"to_{dtype}", value=value)
    except pyplugs.UnknownPluginFunctionError:
        raise ValueError(f"Conversion to {dtype} is not supported")
Convert value to the given type
Convert value to the given type
Convert value to the given type
def convert_to(dtype, value):
    try:
        return convert(f"to_{dtype}", value=value)
    except pyplugs.UnknownPluginFunctionError:
        raise ValueError(f"Conversion to {dtype} is not supported")
def convert_to ( dtype , value ) : try : return convert ( f"to_{dtype}" , value = value ) except pyplugs . UnknownPluginFunctionError : raise ValueError ( f"Conversion to {dtype} is not supported" )
Convert value to the given type
Convert value to the given type
"""Convert value to the given type"""
dtype
value