bobfang1992 / pytomlpp

A python wrapper for tomlplusplus
https://bobfang1992.github.io/pytomlpp/pytomlpp.html
MIT License
86 stars 11 forks source link

Booleans are dumped as integers #46

Closed Yura52 closed 3 years ago

Yura52 commented 3 years ago

Hi! Thank you for the nice wrapper! Just noticed that the type is not preserved for booleans, although it does not affect my workflow.

>>> import pytomlpp as toml
>>> toml.dumps({'x': True})
'x = 1'

python==3.8.5 pytomlpp==0.3.4

bobfang1992 commented 3 years ago

Thanks! I will take a look and get back to you.

bobfang1992 commented 3 years ago

Hi this is fixed by my last commit and I am releasing a new version now. Please do let me know if you have further questions

Yura52 commented 3 years ago

Thank you for the quick reply, I've updated the package and the problem is gone.