tomlNot a homogeneous array (line 2 column 1 char 1) tomli/tomli_w{'v': [1, 1.2, True, 'string']} tomlkit{'v': [1, 1.2, True, 'string']} rtoml{'v': [1, 1.2, True, 'string']} qtoml{'v': [1, 1.2, True, 'string']} ...
ValueError: Not a homogeneous array >>> toml.loads('x = [10, 20]') {'x': [10, 20]} Recursive arrays are a possibility: >>> toml.loads('x = [[10, 20], [30, 40]]') {'x': [[10, 20], [30, 40]]} But I would rather be safe here and convert them to string anyway...