File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11from enum import Enum
2+ from typing import Optional
23
34
45class AuthType (Enum ):
@@ -7,7 +8,7 @@ class AuthType(Enum):
78 AZURE_SP_M2M = "azure-sp-m2m"
89
910
10- def get_effective_azure_login_app_id (hostname : str ) -> str :
11+ def get_effective_azure_login_app_id (hostname : Optional [ str ] ) -> str :
1112 """
1213 Get the effective Azure login app ID for a given hostname.
1314 This function determines the appropriate Azure login app ID based on the hostname.
Original file line number Diff line number Diff line change 66import webbrowser
77from datetime import datetime , timezone
88from http .server import HTTPServer
9- from typing import List
9+ from typing import List , Optional
1010
1111import oauthlib .oauth2
1212import requests
@@ -317,9 +317,9 @@ class ClientCredentialsTokenSource(RefreshableTokenSource):
317317
318318 def __init__ (
319319 self ,
320- token_url : str ,
321- oauth_client_id : str ,
322- oauth_client_secret : str ,
320+ token_url : Optional [ str ] ,
321+ oauth_client_id : Optional [ str ] ,
322+ oauth_client_secret : Optional [ str ] ,
323323 extra_params : dict = {},
324324 ):
325325 self .oauth_client_id = oauth_client_id
You can’t perform that action at this time.
0 commit comments