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])