mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 23:41:55 +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: ...
|
) -> None: ...
|
||||||
def __iter__(self) -> Iterator[Page[_T]]: ...
|
def __iter__(self) -> Iterator[Page[_T]]: ...
|
||||||
def validate_number(self, number: Union[int, float, str]) -> int: ...
|
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]: ...
|
def page(self, number: Union[int, str]) -> Page[_T]: ...
|
||||||
@property
|
@property
|
||||||
def count(self) -> int: ...
|
def count(self) -> int: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user