cdgriffith / Box

Python dictionaries with advanced dot notation access
https://github.com/cdgriffith/Box/wiki
MIT License
2.61k stars 106 forks source link

Mypy stubs and general maintenance #202

Closed cdgriffith closed 3 years ago

cdgriffith commented 3 years ago
DanieleQ97 commented 2 years ago

About tomli, Python 3.11 should add tomllib which is basically tomli but built-in.

Maybe in future toml could be dropped entirely and the import changed to something like:

try:
    import tomllib
except ModuleNotFoundError:
    import tomli as tomllib
cdgriffith commented 2 years ago

https://docs.python.org/3.11/library/tomllib.html

This module does not support writing TOML.

Will have to wait until it works for both reading and writing before it would be worth implementing IMO. And then will have to do a check for versions like this 3.11 for when it doesn't support writing. Them releasing it this early without writing abilities is quite a shortsighted headace.