Skip to content

Commit 9aff8c1

Browse files
authored
Generated new Python types (#2827)
## Changes Generated new Python types by running `pushd experimental/python && make codegen` ## Why This PR #2788 introduced new task types but Python types were not generated causing schema checks to fail.
1 parent d14659e commit 9aff8c1

File tree

7 files changed

+4
-21
lines changed

7 files changed

+4
-21
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ generate:
7070
genkit update-sdk
7171
[ ! -f tagging.py ] || mv tagging.py internal/genkit/tagging.py
7272
[ ! -f .github/workflows/next-changelog.yml ] || rm .github/workflows/next-changelog.yml
73+
pushd experimental/python && make codegen
7374

7475
.PHONY: lint tidy lintcheck fmt test cover showcover build snapshot vendor schema integration integration-short acc-cover acc-showcover docs ws

experimental/python/databricks/bundles/jobs/_models/authentication_method.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44

55
class AuthenticationMethod(Enum):
6-
"""
7-
:meta private: [EXPERIMENTAL]
8-
"""
9-
106
OAUTH = "OAUTH"
117
PAT = "PAT"
128

experimental/python/databricks/bundles/jobs/_models/power_bi_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
@dataclass(kw_only=True)
1818
class PowerBiModel:
19-
"""
20-
:meta private: [EXPERIMENTAL]
21-
"""
19+
""""""
2220

2321
authentication_method: VariableOrOptional[AuthenticationMethod] = None
2422
"""

experimental/python/databricks/bundles/jobs/_models/power_bi_table.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
@dataclass(kw_only=True)
1414
class PowerBiTable:
15-
"""
16-
:meta private: [EXPERIMENTAL]
17-
"""
15+
""""""
1816

1917
catalog: VariableOrOptional[str] = None
2018
"""

experimental/python/databricks/bundles/jobs/_models/power_bi_task.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919

2020
@dataclass(kw_only=True)
2121
class PowerBiTask:
22-
"""
23-
:meta private: [EXPERIMENTAL]
24-
"""
22+
""""""
2523

2624
connection_resource_name: VariableOrOptional[str] = None
2725
"""

experimental/python/databricks/bundles/jobs/_models/storage_mode.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44

55
class StorageMode(Enum):
6-
"""
7-
:meta private: [EXPERIMENTAL]
8-
"""
9-
106
DIRECT_QUERY = "DIRECT_QUERY"
117
IMPORT = "IMPORT"
128
DUAL = "DUAL"

experimental/python/databricks/bundles/jobs/_models/task.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ class Task:
215215

216216
power_bi_task: VariableOrOptional[PowerBiTask] = None
217217
"""
218-
:meta private: [EXPERIMENTAL]
219-
220218
The task triggers a Power BI semantic model update when the `power_bi_task` field is present.
221219
"""
222220

@@ -415,8 +413,6 @@ class TaskDict(TypedDict, total=False):
415413

416414
power_bi_task: VariableOrOptional[PowerBiTaskParam]
417415
"""
418-
:meta private: [EXPERIMENTAL]
419-
420416
The task triggers a Power BI semantic model update when the `power_bi_task` field is present.
421417
"""
422418

0 commit comments

Comments
 (0)