Skip to content

Commit f07e5e4

Browse files
author
kgued
committed
use kwargs in with_function() for function args to avoid having to convert manually arguments to dict
1 parent 541f695 commit f07e5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ def with_function_name(self, module_name, function_name, function_args=None, cus
11111111

11121112
return self
11131113

1114-
def with_function(self, fn, function_args=None, custom_template=None):
1114+
def with_function(self, fn, custom_template=None, **function_args):
11151115
#TODO: add detailed documentation, especially about the constrains on signature of said fn, e.g: input df lists
11161116
import inspect
11171117
#TODO: add in documentation that relative imports wont work

0 commit comments

Comments
 (0)