Skip to content

Commit f518085

Browse files
committed
nit
1 parent 6d85d19 commit f518085

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/databricks/sql/auth/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from enum import Enum
2+
from typing import Optional
23

34

45
class 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.

src/databricks/sql/auth/oauth.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import webbrowser
77
from datetime import datetime, timezone
88
from http.server import HTTPServer
9-
from typing import List
9+
from typing import List, Optional
1010

1111
import oauthlib.oauth2
1212
import 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

0 commit comments

Comments
 (0)