Skip to content

Commit

Permalink
Added typing
Browse files Browse the repository at this point in the history
  • Loading branch information
srugano committed Oct 8, 2024
1 parent 213ef23 commit 89192d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hope_country_report/web/views/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from django.contrib.auth.mixins import PermissionRequiredMixin
from django.http import HttpResponseBase
from django.db.models.query import QuerySet
from django.views.generic import DetailView, ListView

from hope_country_report.apps.power_query.utils import to_dataset
Expand All @@ -15,7 +16,7 @@ class ChartListView(SelectedOfficeMixin, PermissionRequiredMixin, ListView[Chart
permission_required = ["power_query.view_chartpage"]
model = ChartPage

def get_queryset(self):
def get_queryset(self) -> QuerySet[ChartPage]:
"""
Filter the queryset to return only ChartPages related to the selected CountryOffice.
"""
Expand Down

0 comments on commit 89192d9

Please sign in to comment.