Skip to content

Commit abf0203

Browse files
chore(internal): avoid lint errors in pagination expressions
1 parent 6bec701 commit abf0203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/writerai/pagination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def next_page_info(self) -> Optional[PageInfo]:
129129
if self.pagination.offset is not None:
130130
offset = self.pagination.offset
131131
if offset is None:
132-
return None
132+
return None # type: ignore[unreachable]
133133

134134
length = len(self._get_page_items())
135135
current_count = offset + length
@@ -163,7 +163,7 @@ def next_page_info(self) -> Optional[PageInfo]:
163163
if self.pagination.offset is not None:
164164
offset = self.pagination.offset
165165
if offset is None:
166-
return None
166+
return None # type: ignore[unreachable]
167167

168168
length = len(self._get_page_items())
169169
current_count = offset + length

0 commit comments

Comments
 (0)