From ffcf807cb1d2f647b5b28288ce795e500f9acf1b Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Wed, 24 Jul 2024 01:30:19 -0400 Subject: [PATCH] add missing type argument to `Paginator` (#2271) --- django-stubs/core/paginator.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/core/paginator.pyi b/django-stubs/core/paginator.pyi index 55720e15a..752865c32 100644 --- a/django-stubs/core/paginator.pyi +++ b/django-stubs/core/paginator.pyi @@ -51,12 +51,12 @@ class Paginator(Generic[_T]): class Page(Sequence[_T]): object_list: _SupportsPagination[_T] number: int - paginator: Paginator + paginator: Paginator[_T] def __init__( self, object_list: _SupportsPagination[_T], number: int, - paginator: Paginator, + paginator: Paginator[_T], ) -> None: ... @overload def __getitem__(self, index: int) -> _T: ...