diff --git a/sinch/core/pagination.py b/sinch/core/pagination.py index b4c4ac6..ff4495e 100644 --- a/sinch/core/pagination.py +++ b/sinch/core/pagination.py @@ -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 @@ -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: