Skip to content

Commit 293b547

Browse files
lint fixes
Signed-off-by: Andre Furlan <[email protected]>
1 parent c963c1b commit 293b547

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/databricks/sql/auth/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ def get_python_sql_connector_auth_provider(hostname: str, **kwargs):
9999
if kwargs.get("oauth_client_id") and kwargs.get("oauth_redirect_port")
100100
else PYSQL_OAUTH_REDIRECT_PORT_RANGE,
101101
oauth_persistence=kwargs.get("experimental_oauth_persistence"),
102-
credentials_provider = kwargs.get("credentials_provider")
102+
credentials_provider=kwargs.get("credentials_provider"),
103103
)
104104
return get_auth_provider(cfg)

src/databricks/sql/auth/authenticators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def add_headers(self, request_headers: Dict[str, str]):
1919

2020
# In order to keep compatibility with SDK
2121
class CredentialsProvider(abc.ABC):
22-
""" CredentialsProvider is the protocol (call-side interface)
23-
for authenticating requests to Databricks REST APIs"""
22+
"""CredentialsProvider is the protocol (call-side interface)
23+
for authenticating requests to Databricks REST APIs"""
2424

2525
@abc.abstractmethod
2626
def auth_type(self) -> str:
@@ -138,6 +138,7 @@ def _update_token_if_expired(self):
138138
logging.error(f"unexpected error in oauth token update", e, exc_info=True)
139139
raise e
140140

141+
141142
class ExternalAuthProvider(AuthProvider):
142143
def __init__(self, credentials_provider: CredentialsProvider) -> None:
143144
self._header_factory = credentials_provider()

0 commit comments

Comments
 (0)