Skip to content

Commit 3213b7b

Browse files
authored
Fixed debug_headers type hints for WorkspaceClient and AccountClient (#258)
## Changes Change `debug_headers` type hint from `int` to `bool`. According to the docs it should be `bool`: https://github.com/databricks/databricks-sdk-py/blob/519fbe37b661d29df2acdd7880484b58f43d7e9a/README.md?plain=1#L235 https://github.com/databricks/databricks-sdk-py/blob/519fbe37b661d29df2acdd7880484b58f43d7e9a/docs/authentication.md?plain=1#L134 ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [x] `make fmt` applied - [ ] relevant integration tests applied --> Not applicable, no logic change
1 parent 43c9b2c commit 3213b7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.codegen/__init__.py.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _make_dbutils(config: client.Config):
3636
class WorkspaceClient:
3737
def __init__(self, *{{range $args}}, {{.}}: str = None{{end}},
3838
debug_truncate_bytes: int = None,
39-
debug_headers: int = None,
39+
debug_headers: bool = None,
4040
product="unknown",
4141
product_version="0.0.0",
4242
credentials_provider: client.CredentialsProvider = None,
@@ -58,7 +58,7 @@ class WorkspaceClient:
5858
class AccountClient:
5959
def __init__(self, *{{range $args}}, {{.}}: str = None{{end}},
6060
debug_truncate_bytes: int = None,
61-
debug_headers: int = None,
61+
debug_headers: bool = None,
6262
product="unknown",
6363
product_version="0.0.0",
6464
credentials_provider: client.CredentialsProvider = None,

databricks/sdk/__init__.py

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

0 commit comments

Comments
 (0)