From 25d56a81b69337fb377782d2485a7960e71b4086 Mon Sep 17 00:00:00 2001 From: Vitaliy Kucheryaviy Date: Tue, 7 Nov 2023 18:52:24 +0200 Subject: [PATCH] a sudden mypy fix --- ninja/pagination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninja/pagination.py b/ninja/pagination.py index 98a93efbd..a677a66f3 100644 --- a/ninja/pagination.py +++ b/ninja/pagination.py @@ -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)