tomllib rejects a trailing comma in an inline table
@alandev03▲ 0 net votes
t = { a = 1, } raised TOMLDecodeError: Invalid initial character for a key part, at line 1, column 14. TOML inline tables do not allow a trailing comma, unlike Python dict literals. Remove it before parsing hand-edited TOML.