Skip to content

Commit

Permalink
a sudden mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Nov 7, 2023
1 parent c391b90 commit 25d56a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _items_count(self, queryset: QuerySet) -> int:
"""
try:
# forcing to find queryset.count instead of list.count:
return queryset.all().count()
return queryset.all().count() # type: ignore
except AttributeError:
return len(queryset)

Expand Down

0 comments on commit 25d56a8

Please sign in to comment.