Skip to content

Commit

Permalink
Add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jul 16, 2023
1 parent 166b4af commit 084881b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion magazine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ class MagazineIndexPage(Page):

max_count = 1

def get_context(self, request, *args, **kwargs):
def get_context(
self,
request: HttpRequest,
*args: tuple,
**kwargs: dict,
) -> dict:
context = super().get_context(request)

# number of days for archive threshold
Expand Down

0 comments on commit 084881b

Please sign in to comment.