File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def __init__(
24
24
_cache_age : Optional [int ] = None ,
25
25
_cache_keys : Optional [List [str ]] = None ,
26
26
_max_retries : Optional [int ] = None ,
27
- _depends = None ,
27
+ _depends : Optional [ List [ "CoreNode" ]] = None ,
28
28
** attr ,
29
29
):
30
30
self ._out_type = out_type
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ class RunPython(CoreNode[RunPythonOut]):
11
11
def __init__ (
12
12
self ,
13
13
function : Callable ,
14
- kwargs : Dict [ str , Any ] = {} ,
14
+ kwargs = None ,
15
15
pip_install : Optional [List [str ]] = None ,
16
16
hide : bool = False ,
17
17
_cache_age : Optional [int ] = None ,
18
18
_cache_keys : Optional [List [str ]] = None ,
19
19
_max_retries : Optional [int ] = None ,
20
- _depends : List [CoreNode ] = [] ,
20
+ _depends : Optional [ List [CoreNode ]] = None ,
21
21
):
22
22
"""
23
23
Args:
@@ -41,7 +41,7 @@ def __init__(
41
41
python_version = sys .version .split ()[0 ]
42
42
super ().__init__ (
43
43
pkl_function = fn_str ,
44
- kwargs = kwargs ,
44
+ kwargs = {} if kwargs is None else kwargs ,
45
45
pip_install = pip_install ,
46
46
hide = hide ,
47
47
python_version = python_version ,
You can’t perform that action at this time.
0 commit comments