Skip to content

Commit 4288f8c

Browse files
chore(internal): avoid lint errors in pagination expressions
1 parent f6a0407 commit 4288f8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/arcadepy/pagination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _get_page_items(self) -> List[_T]:
2626
def next_page_info(self) -> Optional[PageInfo]:
2727
offset = self.offset
2828
if offset is None:
29-
return None
29+
return None # type: ignore[unreachable]
3030

3131
length = len(self._get_page_items())
3232
current_count = offset + length
@@ -57,7 +57,7 @@ def _get_page_items(self) -> List[_T]:
5757
def next_page_info(self) -> Optional[PageInfo]:
5858
offset = self.offset
5959
if offset is None:
60-
return None
60+
return None # type: ignore[unreachable]
6161

6262
length = len(self._get_page_items())
6363
current_count = offset + length

0 commit comments

Comments
 (0)