mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 14:31:56 +08:00
Allow None to be passed to Paginator.get_page (#1101)
This commit is contained in:
@@ -30,7 +30,7 @@ class Paginator(Generic[_T]):
|
||||
) -> None: ...
|
||||
def __iter__(self) -> Iterator[Page[_T]]: ...
|
||||
def validate_number(self, number: Union[int, float, str]) -> int: ...
|
||||
def get_page(self, number: Union[int, float, str]) -> Page[_T]: ...
|
||||
def get_page(self, number: Union[int, float, str, None]) -> Page[_T]: ...
|
||||
def page(self, number: Union[int, str]) -> Page[_T]: ...
|
||||
@property
|
||||
def count(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user