We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fde54 commit eca7c50Copy full SHA for eca7c50
downloads/views.py
@@ -202,11 +202,11 @@ def item_title(self, item: Release) -> str:
202
"""Return the release name as the item title."""
203
return item.name
204
205
- def item_description(self, item):
+ def item_description(self, item: Release) -> str:
206
"""Return the release version and release date as the item description."""
207
return f"Version: {item.version}, Release Date: {item.release_date}"
208
209
- def item_link(self, item):
+ def item_link(self, item: Release) -> str:
210
"""Return the URL to the release page on python.org."""
211
return reverse("downloads:download_release_detail", args=[item.slug])
212
0 commit comments