def output_type(to_check: str) -> str:
    """Determine whether the output value of a file is a digit or a string.

    Args:
        to_check (str): The string variant of the value

    Returns:
        str: 'dig' if parsing to float succeeded, 'str' otherwise

    """
    try:
        checked = float(to_check)
        return 'dig'
    except:
        return 'str'