runnable 0.32.0__py3-none-any.whl → 0.32.1__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 +5 -2
- {runnable-0.32.0.dist-info → runnable-0.32.1.dist-info}/METADATA +1 -1
- {runnable-0.32.0.dist-info → runnable-0.32.1.dist-info}/RECORD +6 -6
- {runnable-0.32.0.dist-info → runnable-0.32.1.dist-info}/WHEEL +0 -0
- {runnable-0.32.0.dist-info → runnable-0.32.1.dist-info}/entry_points.txt +0 -0
- {runnable-0.32.0.dist-info → runnable-0.32.1.dist-info}/licenses/LICENSE +0 -0
runnable/parameters.py
CHANGED
@@ -9,7 +9,7 @@ from pydantic import BaseModel, ConfigDict
|
|
9
9
|
from typing_extensions import Callable
|
10
10
|
|
11
11
|
from runnable import defaults
|
12
|
-
from runnable.datastore import JsonParameter
|
12
|
+
from runnable.datastore import JsonParameter, ObjectParameter
|
13
13
|
from runnable.defaults import TypeMapVariable
|
14
14
|
from runnable.utils import remove_prefix
|
15
15
|
|
@@ -101,10 +101,13 @@ def filter_arguments_for_func(
|
|
101
101
|
# default value is given in the function signature, nothing further to do.
|
102
102
|
continue
|
103
103
|
|
104
|
+
param_value = params[name]
|
105
|
+
|
104
106
|
if type(value.annotation) in [
|
105
107
|
BaseModel,
|
106
108
|
pydantic._internal._model_construction.ModelMetaclass,
|
107
|
-
]:
|
109
|
+
] and not isinstance(param_value, ObjectParameter):
|
110
|
+
# Even if the annotation is a pydantic model, it can be passed as an object parameter
|
108
111
|
# We try to cast it as a pydantic model if asked
|
109
112
|
named_param = params[name].get_value()
|
110
113
|
|
@@ -54,14 +54,14 @@ runnable/executor.py,sha256=UOsYJ3NkTGw4FTR0iePX7AOJzY7vODhZ62aqrwVMO1c,15143
|
|
54
54
|
runnable/graph.py,sha256=poQz5zcvq89ju_u5sYlunQLPbHnXTaUmjcvstPwvT4U,16536
|
55
55
|
runnable/names.py,sha256=vn92Kv9ANROYSZX6Z4z1v_WA3WiEdIYmG6KEStBFZug,8134
|
56
56
|
runnable/nodes.py,sha256=d1eLttMAcV7CTwTEqOuNwZqItANoLUkXJ73Xp-srlyI,17811
|
57
|
-
runnable/parameters.py,sha256=
|
57
|
+
runnable/parameters.py,sha256=u77CdqqDAbVdzNeBFPNUfGnWPy9-SpBVmwEJ56xmDm8,5289
|
58
58
|
runnable/pickler.py,sha256=ydJ_eti_U1F4l-YacFp7BWm6g5vTn04UXye25S1HVok,2684
|
59
59
|
runnable/sdk.py,sha256=J1PyiHQD2v_0JaqHjY7xSaXwCUMi_mCNr70TsC-SFZU,35012
|
60
60
|
runnable/secrets.py,sha256=4L_dBFxTgr8r_hHUD6RlZEtqaOHDRsFG5PXO5wlvMI0,2324
|
61
61
|
runnable/tasks.py,sha256=_A0pcTyOGQL-72AicOxracsrwfs2Vg0r4mQyxz3k6Iw,29016
|
62
62
|
runnable/utils.py,sha256=hBr7oGwGL2VgfITlQCTz-a1iwvvf7Mfl-HY8UdENZac,19929
|
63
|
-
runnable-0.32.
|
64
|
-
runnable-0.32.
|
65
|
-
runnable-0.32.
|
66
|
-
runnable-0.32.
|
67
|
-
runnable-0.32.
|
63
|
+
runnable-0.32.1.dist-info/METADATA,sha256=07vRwa5svN-dopa4Pxh8fQcSM8jiCIO7s0o1V0IVtsE,10168
|
64
|
+
runnable-0.32.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
65
|
+
runnable-0.32.1.dist-info/entry_points.txt,sha256=uWHbbOSj0jlG54tFHw377xKkfVbjWvb_1Y9L_LgjJ0Q,1925
|
66
|
+
runnable-0.32.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
67
|
+
runnable-0.32.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|