Skip to content

Commit

Permalink
Add missing PageNumberPagination.get_page_number() method
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed Nov 7, 2022
1 parent ec5ecd4 commit 12498b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rest_framework-stubs/pagination.pyi
Expand Up @@ -68,6 +68,7 @@ class PageNumberPagination(BasePagination):
def get_paginated_response_schema(self, schema: Dict[str, Any]) -> Dict[str, Any]: ...
def get_schema_fields(self, view: APIView) -> List[CoreAPIField]: ...
def get_schema_operation_parameters(self, view: APIView) -> List[Dict[str, Any]]: ...
def get_page_number(self, request: Request, paginator: Paginator) -> Union[int, str]: ...
def get_page_size(self, request: Request) -> Optional[int]: ...
def get_next_link(self) -> Optional[str]: ...
def get_previous_link(self) -> Optional[str]: ...
Expand Down

0 comments on commit 12498b3

Please sign in to comment.