Skip to content

Commit e0f0efe

Browse files
committed
Replace AccessToken with TokenCredential in docstrings
1 parent f7e687b commit e0f0efe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

msgraphcore/client_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def __init__(self, **kwargs):
4343
def create_with_default_middleware(self, credential: TokenCredential, **kwargs) -> Session:
4444
"""Applies the default middleware chain to the HTTP Client
4545
46-
:param credential: Accesstoken used to access the Graph API. Created through one of the
47-
credential classes from `azure.identity`
46+
:param credential: TokenCredential used to acquire an access token for the Microsoft
47+
Graph API. Created through one of the credential classes from `azure.identity`
4848
"""
4949
middleware = [
5050
AuthorizationHandler(credential, **kwargs),

msgraphcore/graph_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
class GraphClient:
1212
"""Constructs a custom HTTPClient to be used for requests against Microsoft Graph
1313
14-
:keyword credential: Accesstoken used to access the Graph API. Created through one of the
15-
credential classes from `azure.identity`
14+
:keyword credential: TokenCredential used to acquire an access token for the Microsoft
15+
Graph API. Created through one of the credential classes from `azure.identity`
1616
:keyword list middleware: Custom middleware(HTTPAdapter) list that will be used to create
1717
a middleware pipeline. The middleware should be arranged in the order in which they will
1818
modify the request.

0 commit comments

Comments
 (0)