|
20 | 20 | from typing import Callable, Optional, Union, Dict, Any |
21 | 21 |
|
22 | 22 | from typing import TypeVar |
23 | | -from requests.exceptions import InvalidURL # type: ignore |
| 23 | +from requests.exceptions import InvalidURL |
24 | 24 |
|
25 | | -from kiota_http.httpx_request_adapter import HttpxRequestAdapter # type: ignore |
26 | | -from kiota_abstractions.method import Method # type: ignore |
27 | | -from kiota_abstractions.headers_collection import HeadersCollection # type: ignore |
28 | | -from kiota_abstractions.request_information import RequestInformation # type: ignore |
29 | | -from kiota_abstractions.serialization.parsable import Parsable # type: ignore |
| 25 | +from kiota_http.httpx_request_adapter import HttpxRequestAdapter |
| 26 | +from kiota_abstractions.method import Method |
| 27 | +from kiota_abstractions.headers_collection import HeadersCollection |
| 28 | +from kiota_abstractions.request_information import RequestInformation |
| 29 | +from kiota_abstractions.serialization.parsable import Parsable |
30 | 30 |
|
31 | 31 | from msgraph_core.models import PageResult # pylint: disable=no-name-in-module, import-error |
32 | 32 |
|
@@ -141,7 +141,7 @@ async def next(self) -> Optional[PageResult]: |
141 | 141 | if self.current_page is not None and not self.current_page.odata_next_link: |
142 | 142 | return None |
143 | 143 | response = self.convert_to_page(await self.fetch_next_page()) |
144 | | - page: PageResult[Any] = PageResult() |
| 144 | + page: PageResult = PageResult() |
145 | 145 | page.odata_next_link = response.odata_next_link |
146 | 146 | page.set_value(response.get('value', []) if isinstance(response, dict) else []) |
147 | 147 | return page |
@@ -176,7 +176,7 @@ def convert_to_page(response: Union[T, list, object]) -> PageResult: |
176 | 176 | parsable_page, dict |
177 | 177 | ) else getattr(parsable_page, 'odata_next_link', '') |
178 | 178 |
|
179 | | - page: PageResult[Any] = PageResult() |
| 179 | + page: PageResult = PageResult() |
180 | 180 | page.odata_next_link = next_link |
181 | 181 | page.set_value(value) |
182 | 182 | return page |
|
0 commit comments