Added return type annotation to remove_uploaded_image_exif

This commit is contained in:
Tim Rogers 2025-03-21 14:59:00 -05:00
parent 7a50943ea5
commit e11a5aba14

View file

@ -5,7 +5,7 @@ from PIL import Image
from django.core.files.uploadedfile import InMemoryUploadedFile
def remove_uploaded_image_exif(source: InMemoryUploadedFile):
def remove_uploaded_image_exif(source: InMemoryUploadedFile) -> InMemoryUploadedFile:
"""Removes EXIF data from provided image and returns a sanitized copy"""
io = BytesIO()
with Image.open(source) as image: