Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Dec 20, 2024
1 parent 51e9382 commit ef1e899
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions py-polars/polars/io/cloud/credential_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,11 @@ def __init__(

self._check_module_availability()

from azure.identity import (
DefaultAzureCredential, # type: ignore[import-not-found]
)

self.account_name = storage_account
self.credential = DefaultAzureCredential()
# Done like this to bypass mypy, we don't have stubs for azure.identity
self.credential = importlib.import_module("azure.identity").__dict__[
"DefaultAzureCredential"
]()
self.scopes = scopes if scopes is not None else ["https://storage.azure.com/"]
self._verbose = _verbose

Expand Down

0 comments on commit ef1e899

Please sign in to comment.