From 70a2dde757028bb039aaabc568cdd0219377eea2 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 30 Jan 2024 08:50:52 -0800 Subject: [PATCH] Fixes typing --- src/documents/conditionals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/conditionals.py b/src/documents/conditionals.py index 357a2b968..7f77ae125 100644 --- a/src/documents/conditionals.py +++ b/src/documents/conditionals.py @@ -110,7 +110,7 @@ def preview_etag(request, pk: int) -> Optional[str]: return None -def preview_last_modified(request, pk: int) -> Optional[str]: +def preview_last_modified(request, pk: int) -> Optional[datetime]: """ Uses the documents modified time to set the Last-Modified header. Not strictly speaking correct, but close enough and quick @@ -123,7 +123,7 @@ def preview_last_modified(request, pk: int) -> Optional[str]: return None -def thumbnail_last_modified(request, pk: int) -> Optional[int]: +def thumbnail_last_modified(request, pk: int) -> Optional[datetime]: """ Returns the filesystem last modified either from cache or from filesystem """