Skip to content

Commit

Permalink
chore: add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 16, 2024
1 parent 44fde54 commit eca7c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit eca7c50

Please sign in to comment.