Skip to content

Commit 73d2419

Browse files
Fix type error for Python 3.8 by using list instead of List[]
1 parent 9b6ca63 commit 73d2419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

databricks/sdk/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class Config:
149149
env="DATABRICKS_DISABLE_EXPERIMENTAL_FILES_API_CLIENT"
150150
)
151151

152-
scopes: List[str] = ConfigAttribute(transform=_parse_scopes)
152+
scopes: list = ConfigAttribute(transform=_parse_scopes)
153153
authorization_details: str = ConfigAttribute()
154154

155155
# disable_oauth_refresh_token controls whether a refresh token should be requested
@@ -704,7 +704,7 @@ def _init_product(self, product, product_version):
704704
else:
705705
self._product_info = None
706706

707-
def get_scopes(self) -> List[str]:
707+
def get_scopes(self) -> list:
708708
"""Get OAuth scopes with proper defaulting.
709709
710710
Returns ["all-apis"] if no scopes configured.

0 commit comments

Comments
 (0)