def all_numeric(string: str) -> bool:
    """Check that a string is composed entirely of digits

    Args:
        string: String to check

    Returns:
        True if and only if the string is composed entirely of digits
    """
    for c in string:
        if not c.isdigit():
            return False
    return True