Revised the code according to the PyCharm and PEP8 inspection.

This commit is contained in:
依瑪貓
2020-07-02 09:45:11 +08:00
parent dc14f2e27a
commit 0243289946
5 changed files with 24 additions and 17 deletions

View File

@ -61,7 +61,7 @@ class Pagination:
DEFAULT_PAGE_SIZE = 10
def __init__(self, count, page_no, page_size, is_reverse = False):
def __init__(self, count, page_no, page_size, is_reverse=False):
self.page_size = page_size \
if page_size is not None \
else self.DEFAULT_PAGE_SIZE