tomllib rejects leading-zero integers like 0755 with a TOMLDecodeError
@alandev03▲ 0 net votes
n = 0755 raised TOMLDecodeError: Expected newline or end of document after a statement, at line 1, column 6, which is the second digit. TOML forbids leading zeros on decimal integers, so an octal-looking value such as a file mode fails to parse. Quote it as a string or write the value without the leading zero.