runnable 0.28.5__py3-none-any.whl → 0.28.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runnable/parameters.py +0 -3
- runnable/sdk.py +11 -1
- {runnable-0.28.5.dist-info → runnable-0.28.7.dist-info}/METADATA +1 -1
- {runnable-0.28.5.dist-info → runnable-0.28.7.dist-info}/RECORD +7 -7
- {runnable-0.28.5.dist-info → runnable-0.28.7.dist-info}/WHEEL +0 -0
- {runnable-0.28.5.dist-info → runnable-0.28.7.dist-info}/entry_points.txt +0 -0
- {runnable-0.28.5.dist-info → runnable-0.28.7.dist-info}/licenses/LICENSE +0 -0
runnable/parameters.py
CHANGED
@@ -114,9 +114,6 @@ def filter_arguments_for_func(
|
|
114
114
|
|
115
115
|
bound_model = bind_args_for_pydantic_model(named_param, value.annotation)
|
116
116
|
bound_args[name] = bound_model
|
117
|
-
unassigned_params = unassigned_params.difference(
|
118
|
-
bound_model.model_fields.keys()
|
119
|
-
)
|
120
117
|
|
121
118
|
elif value.annotation in [str, int, float, bool]:
|
122
119
|
# Cast it if its a primitive type. Ensure the type matches the annotation.
|
runnable/sdk.py
CHANGED
@@ -824,12 +824,22 @@ class Pipeline(BaseModel):
|
|
824
824
|
|
825
825
|
class BaseJob(BaseModel):
|
826
826
|
catalog: Optional[Catalog] = Field(default=None, alias="catalog")
|
827
|
-
overrides: Dict[str, Any] = Field(default_factory=dict, alias="overrides")
|
828
827
|
returns: List[Union[str, TaskReturns]] = Field(
|
829
828
|
default_factory=list, alias="returns"
|
830
829
|
)
|
831
830
|
secrets: List[str] = Field(default_factory=list)
|
832
831
|
|
832
|
+
@field_validator("catalog", mode="after")
|
833
|
+
@classmethod
|
834
|
+
def validate_catalog(cls, catalog: Optional[Catalog]) -> Optional[Catalog]:
|
835
|
+
if catalog is None:
|
836
|
+
return None
|
837
|
+
|
838
|
+
if catalog.get:
|
839
|
+
raise Exception("Catalog get is not supported for jobs")
|
840
|
+
|
841
|
+
return catalog
|
842
|
+
|
833
843
|
def get_task(self) -> RunnableTask:
|
834
844
|
raise NotImplementedError
|
835
845
|
|
@@ -50,14 +50,14 @@ runnable/executor.py,sha256=UCBBtyD0khl9QjT4SRTFMQDHDLWfJUC2U4_b3KQzaBE,15127
|
|
50
50
|
runnable/graph.py,sha256=poQz5zcvq89ju_u5sYlunQLPbHnXTaUmjcvstPwvT4U,16536
|
51
51
|
runnable/names.py,sha256=vn92Kv9ANROYSZX6Z4z1v_WA3WiEdIYmG6KEStBFZug,8134
|
52
52
|
runnable/nodes.py,sha256=YU9u7r1ESzui1uVtJ1dgwdv1ozyJnF2k-MCFieT8CLI,17519
|
53
|
-
runnable/parameters.py,sha256=
|
53
|
+
runnable/parameters.py,sha256=sT3DNGczivP9z7r4Cp_brbudg1z4J-zjmvrq3ppIrVs,5089
|
54
54
|
runnable/pickler.py,sha256=ydJ_eti_U1F4l-YacFp7BWm6g5vTn04UXye25S1HVok,2684
|
55
|
-
runnable/sdk.py,sha256=
|
55
|
+
runnable/sdk.py,sha256=y3fbK4KAP6FiTF37ickVF9gqaZXrJIgSnHGOSG5ZWpI,33803
|
56
56
|
runnable/secrets.py,sha256=PXcEJw-4WPzeWRLfsatcPPyr1zkqgHzdRWRcS9vvpvM,2354
|
57
57
|
runnable/tasks.py,sha256=X6xijut7ffwpfYDcXoN6y0AcRVd7fWHs676DJ00Kma4,29134
|
58
58
|
runnable/utils.py,sha256=hBr7oGwGL2VgfITlQCTz-a1iwvvf7Mfl-HY8UdENZac,19929
|
59
|
-
runnable-0.28.
|
60
|
-
runnable-0.28.
|
61
|
-
runnable-0.28.
|
62
|
-
runnable-0.28.
|
63
|
-
runnable-0.28.
|
59
|
+
runnable-0.28.7.dist-info/METADATA,sha256=JktO2ExsbIta-x_wCW4WKO5GbosxMbLYf6r8cyKws70,10047
|
60
|
+
runnable-0.28.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
61
|
+
runnable-0.28.7.dist-info/entry_points.txt,sha256=ioMbWojILtdibYVgh1jXJ00SpK-tX3gy7oVGDq61cSk,1839
|
62
|
+
runnable-0.28.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
63
|
+
runnable-0.28.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|