Skip to content

Commit ffcf807

Browse files
add missing type argument to Paginator (#2271)
1 parent e5d2d5d commit ffcf807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/core/paginator.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ class Paginator(Generic[_T]):
5151
class Page(Sequence[_T]):
5252
object_list: _SupportsPagination[_T]
5353
number: int
54-
paginator: Paginator
54+
paginator: Paginator[_T]
5555
def __init__(
5656
self,
5757
object_list: _SupportsPagination[_T],
5858
number: int,
59-
paginator: Paginator,
59+
paginator: Paginator[_T],
6060
) -> None: ...
6161
@overload
6262
def __getitem__(self, index: int) -> _T: ...

0 commit comments

Comments
 (0)