Skip to content

Commit d4b95e3

Browse files
committed
update
1 parent 6c123dd commit d4b95e3

26 files changed

+36
-36
lines changed

databricks/sdk/__init__.py

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/databricks/__init__.py

Whitespace-only changes.

databricks/sdk/databricks/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import requests
1111
import requests.adapters
1212

13-
from .databricks import useragent
13+
from . import useragent
1414
from .casing import Casing
1515
from .clock import Clock, RealClock
1616
from .errors import DatabricksError, _ErrorCustomizer, _Parser

databricks/sdk/databricks/azure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Dict
22

3-
from ..oauth import TokenSource
3+
from .oauth import TokenSource
44
from ..service.provisioning import Workspace
55

66

databricks/sdk/databricks/credentials_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from google.auth.transport.requests import Request # type: ignore
2121
from google.oauth2 import service_account # type: ignore
2222

23-
from .databricks.azure import add_sp_management_token, add_workspace_id_header
23+
from .azure import add_sp_management_token, add_workspace_id_header
2424
from .oauth import (ClientCredentials, OAuthClient, Refreshable, Token,
2525
TokenCache, TokenSource)
2626

@@ -155,7 +155,7 @@ def runtime_native_auth(cfg: "Config") -> Optional[CredentialsProvider]:
155155
# This import MUST be after the "DATABRICKS_RUNTIME_VERSION" check
156156
# above, so that we are not throwing import errors when not in
157157
# runtime and no config variables are set.
158-
from databricks.sdk.runtime import (init_runtime_legacy_auth,
158+
from databricks.sdk.databricks.runtime import (init_runtime_legacy_auth,
159159
init_runtime_native_auth,
160160
init_runtime_repl_auth)
161161

databricks/sdk/databricks/data_plane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from typing import Callable, Optional
66
from urllib import parse
77

8-
from databricks.sdk import oauth
9-
from databricks.sdk.oauth import Token
8+
from databricks.sdk.databricks import oauth
9+
from databricks.sdk.databricks.oauth import Token
1010

1111
URL_ENCODED_CONTENT_TYPE = "application/x-www-form-urlencoded"
1212
JWT_BEARER_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:jwt-bearer"

databricks/sdk/databricks/dbutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from typing import Any, Callable, Dict, List, Optional
99

1010
from .core import ApiClient, Config, DatabricksError
11-
from .mixins import compute as compute_ext
12-
from .mixins import files as dbfs_ext
13-
from .service import compute, workspace
11+
from ..mixins import compute as compute_ext
12+
from ..mixins import files as dbfs_ext
13+
from ..service import compute, workspace
1414

1515
_LOG = logging.getLogger("databricks.sdk")
1616

@@ -229,7 +229,7 @@ def __init__(self, config: "Config" = None):
229229
@property
230230
def widgets(self):
231231
if self._widgets is None:
232-
from ._widgets import widget_impl
232+
from .._widgets import widget_impl
233233

234234
self._widgets = widget_impl()
235235

databricks/sdk/databricks/errors/mapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22

3-
from databricks.sdk.errors import platform
4-
from databricks.sdk.errors.base import DatabricksError
3+
from databricks.sdk.databricks.errors import platform
4+
from databricks.sdk.databricks.errors.base import DatabricksError
55

66
from .overrides import _ALL_OVERRIDES
77

databricks/sdk/databricks/runtime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def displayHTML(html) -> None: # type: ignore
180180

181181
# We want to propagate the error in initialising dbutils because this is a core
182182
# functionality of the sdk
183-
from databricks.sdk.dbutils import RemoteDbUtils
183+
from databricks.sdk.databricks.dbutils import RemoteDbUtils
184184

185185
from . import dbutils_stub
186186

databricks/sdk/databricks/useragent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66
from typing import List, Optional, Tuple
77

8-
from .version import __version__
8+
from ..version import __version__
99

1010
# Constants
1111
RUNTIME_KEY = "runtime"

0 commit comments

Comments
 (0)