Closed vipcxj closed 1 year ago
I'm seeing the same issue.
@dmerejkowsky When will the new version be released? Even though pr was merged, it was still the old version on pip for months
tbump 6.10.0 has been released and contains this fix. Enjoy :)
here is the exception stack:
I typed the command:
tbump current-version
This is my pyproject.toml:I have debug the command, And found the problem.
return type(data)(o.validate(d, **kwargs) for d in data)
This line cause the exception. It's in schema.py line 366. I found data here is not a native python list, but tomlkit.items.Array.You can see to construct a Array instance, you must provide a trivia as argument.
But why data is not a list? I found when you call
ConfigFile.get_parsed
, it return a value with toml special type instance, which caused the issue.So I think to fix this issue, the config returned by
ConfigFile.get_parsed
should be clean to a pure python instance with list and dict.Here is a quick fix: