Skip to content

Commit 760f9cc

Browse files
committed
Pass scopes to request adapater as kwarg
1 parent 8269058 commit 760f9cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

msgraph/graph_service_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# See License in the project root for license information.
55
# -----------------------------------
66

7+
from __future__ import annotations
78
from typing import List, Optional, TYPE_CHECKING, Union
89
from azure.core.credentials import TokenCredential
910
from azure.core.credentials_async import AsyncTokenCredential
@@ -21,8 +22,7 @@ def __init__(
2122
self,
2223
credentials: Optional[Union[TokenCredential, AsyncTokenCredential]] = None,
2324
scopes: Optional[List[str]] = None,
24-
request_adapter: Optional[GraphRequestAdapter] = None
25-
25+
request_adapter: Optional[GraphRequestAdapter] = None,
2626
) -> None:
2727
"""Constructs a client instance to use for making requests to the
2828
Microsoft Graph v.1.0 API.
@@ -41,7 +41,7 @@ def __init__(
4141
raise ValueError("Missing request adapter or valid credentials")
4242

4343
if scopes:
44-
auth_provider = AzureIdentityAuthenticationProvider(credentials, scopes)
44+
auth_provider = AzureIdentityAuthenticationProvider(credentials, scopes=scopes)
4545
else:
4646
auth_provider = AzureIdentityAuthenticationProvider(credentials)
4747

0 commit comments

Comments
 (0)