spotify / luigi

Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in.
Apache License 2.0
17.71k stars 2.39k forks source link

don't convert str to tuple in TupleParameter #3275

Closed kitagry closed 7 months ago

kitagry commented 7 months ago

Description

TupleParameter may convert str to tuple, and I fixed it.

Motivation and Context

Currently, TupleParameter returns unexpected value when to parse json string list.

>>> x = '["hoge", "fuga"]'
>>> TupleParameter().parse(x)
(('h', 'o', 'g', 'e'), ('f', 'u', 'g', 'a'))

Have you tested this? If so, how?

I added unit test.