From eca7c5015d67f23ca088bcee616293f3b35298fa Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Mon, 16 Sep 2024 15:56:07 -0500 Subject: [PATCH] chore: add missing types --- downloads/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloads/views.py b/downloads/views.py index bcdb31389..9ef670623 100644 --- a/downloads/views.py +++ b/downloads/views.py @@ -202,11 +202,11 @@ def item_title(self, item: Release) -> str: """Return the release name as the item title.""" return item.name - def item_description(self, item): + def item_description(self, item: Release) -> str: """Return the release version and release date as the item description.""" return f"Version: {item.version}, Release Date: {item.release_date}" - def item_link(self, item): + def item_link(self, item: Release) -> str: """Return the URL to the release page on python.org.""" return reverse("downloads:download_release_detail", args=[item.slug])