Skip to content

Commit 61bf8b2

Browse files
Move pagination class into a separate file
1 parent da984d1 commit 61bf8b2

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

seam/pagination.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Pagination:
2+
def __init__(
3+
self,
4+
has_next_page: bool,
5+
next_page_cursor: str | None,
6+
next_page_url: str | None,
7+
):
8+
self.has_next_page = has_next_page
9+
self.next_page_cursor = next_page_cursor
10+
self.next_page_url = next_page_url

seam/paginator.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
from typing import Callable, Dict, Any, Tuple, Generator, List
22
from .client import SeamHttpClient
33
from niquests import Response, JSONDecodeError
4-
5-
6-
class Pagination:
7-
def __init__(
8-
self,
9-
has_next_page: bool,
10-
next_page_cursor: str | None,
11-
next_page_url: str | None,
12-
):
13-
self.has_next_page = has_next_page
14-
self.next_page_cursor = next_page_cursor
15-
self.next_page_url = next_page_url
4+
from .pagination import Pagination
165

176

187
class Paginator:

0 commit comments

Comments
 (0)