Skip to content

Commit 27b5879

Browse files
fix: disable pylint C0415 for intentional lazy import
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b2d5c70 commit 27b5879

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/msgraph_core/tasks/page_iterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async def fetch_next_page(self) -> Optional[Union[T, PageResult]]:
202202
if not next_link.startswith('http'):
203203
# Imported lazily: importing requests at module level adds ~350 ms
204204
# to every `from msgraph import GraphServiceClient` cold start.
205-
from requests.exceptions import InvalidURL
205+
from requests.exceptions import InvalidURL # pylint: disable=import-outside-toplevel
206206
raise InvalidURL('Could not parse nextLink URL.')
207207
request_info = RequestInformation()
208208
request_info.http_method = Method.GET

0 commit comments

Comments
 (0)