Skip to content

Commit

Permalink
feat(MyPy): more pagination annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Oct 18, 2023
1 parent 7cb06ae commit 3de5319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sinch/core/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _calculate_next_page(self) -> None:

@classmethod
@abstractmethod
def _initialize(cls, sinch, endpoint: HTTPEndpoint) -> 'Paginator':
def _initialize(cls, sinch: 'ClientBase', endpoint: HTTPEndpoint) -> 'Paginator':
pass


Expand All @@ -56,7 +56,7 @@ def __init__(self, paginator: Paginator):
def __iter__(self) -> 'PageIterator':
return self

def __next__(self):
def __next__(self) -> Paginator:
if self.paginator.has_next_page:
return self.paginator.next_page()
else:
Expand Down

0 comments on commit 3de5319

Please sign in to comment.