mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-18 03:51:30 +08:00
Allow None to be passed to Paginator.get_page (#1101)
This commit is contained in:
1 parent
5b705d25da
commit
561140a584
1 file changed
+1
-1
@@ -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