(filename: str)
return has_file_allowed_extension(filename, IMG_EXTENSIONS)
Checks if a file is an allowed image extension.

    Args:
        filename (string): path to a file

    Returns:
        bool: True if the filename ends with a known image extension
Checks if a file is an allowed image extension.
Checks if a file is an allowed image extension .
def is_image_file(filename: str) -> bool:
    """Checks if a file is an allowed image extension.

    Args:
        filename (string): path to a file

    Returns:
        bool: True if the filename ends with a known image extension
    """
    return has_file_allowed_extension(filename, IMG_EXTENSIONS)
def is_image_file ( filename : str ) -> bool : return has_file_allowed_extension ( filename , IMG_EXTENSIONS )