Slackbot
05/04/2023, 2:29 AMElijah Ben Izzy
05/04/2023, 2:42 AMDavid Wesolowski
05/04/2023, 2:43 AMElijah Ben Izzy
05/04/2023, 2:52 AM@parameterize(
query_1={'query_param' : source('query_param_source_1'),
query_2={'query_param' : source('query_param_source_2')
)
def query(query_param: ...) -> ...::
return do_something_with(query_param)
This would be equivalent to defining the same one twice with the same logic but different params. E.G.
def query_1(query_param_source_1: ...) -> ...:
return do_something_with(query_param)
def query_2(query_param_source_2: ...) -> ...:
return do_something_with(query_param)
Elijah Ben Izzy
05/04/2023, 2:52 AMn
of these its a different story but we have a way to support that tooDavid Wesolowski
05/04/2023, 2:53 AMStefan Krawczyk
05/04/2023, 3:08 AMElijah Ben Izzy
05/04/2023, 3:11 AMDavid Wesolowski
05/04/2023, 3:20 AMElijah Ben Izzy
05/04/2023, 3:22 AM