Added the documentation to the invalid page number in Pagination.

This commit is contained in:
依瑪貓 2020-07-02 00:45:53 +08:00
parent 3abce4498f
commit 4537681bb5

View File

@ -61,6 +61,10 @@ class Pagination:
page_size (int): The specified number of records per page
is_reverse (bool): Whether we should display the last
page first
Raises:
PageNoOutOfRangeError: if the specified page number is out
of range or is redundant.
"""
self.page_size = page_size \
if page_size is not None \