def validate_extension(filename: str) -> bool:
    """Validates extension in filename.

    Args:
        filename (str): name of the file.

    Returns:
        bool: if extension is valid.
    """
    valid_extensions = [".toml"]
    for extension in valid_extensions:
        if filename.endswith(extension):
            return True
    return False