Closed sobolevn closed 1 year ago
PEP 680 has been accepted and will be in Python 3.11 :tada:
I think it would be a good idea to switch from from toml
to tomli
, it will make it easier to switch to the stdlib tomllib
at some point in the future.
Sorry @sobolevn, I didn't notice the last sentence of your post. Not sure if you were already working on this, but I have created a PR which fixes this in #67.
toml
was last released on 02.11.2020: https://pypi.org/project/toml/#history There are multiple known bugs: https://github.com/uiri/toml/issuesMaintainer is not supporting their project: https://github.com/uiri/toml/issues/361
Multiple big projects like
mypy
,black
,typeshed
have already switched.The transition seems to be rather simple: basically swap
import toml
withimport tomli
and use a properencoding
when callingloads
.Related: https://www.python.org/dev/peps/pep-0680/
If this is something you think should be done, I can send a PR.