Skip to content

Commit 0eee03e

Browse files
committed
ignore type checking for page creation at next
1 parent e1d6313 commit 0eee03e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/msgraph_core/tasks/page_iterator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def iterate(self, callback: Callable) -> None:
132132
self.current_page = next_page
133133
self.pause_index = 0
134134

135-
async def next(self, response: PageResult) -> Optional[PageResult]:
135+
async def next(self) -> Optional[PageResult]:
136136
"""
137137
Fetches the next page of items.
138138
Returns:
@@ -141,7 +141,8 @@ async def next(self, response: PageResult) -> Optional[PageResult]:
141141
if self.current_page is not None and not self.current_page.odata_next_link:
142142
return None
143143
response = await self.fetch_next_page()
144-
page: PageResult = PageResult(response.odata_next_link, response.value)
144+
print(f"Response - {type(response)}")
145+
page: PageResult = PageResult(response.odata_next_link, response.value) # type: ignore
145146
return page
146147

147148
@staticmethod

0 commit comments

Comments
 (0)