I'm currently upgrading the Python version on of my projects to Python 3.11 (which added tomllib to the standard library) and was delighted to see that almost all packages I use dropped the requirement for tomli:
I'm not sure if there's a need to switch from toml to tomli, but ideally neither should be required on Python 3.11 and the built in tomllib should be used.
As far as I see, the replacement should be pretty straightforward and I'd be happy to provide a PR.
Describe the feature you'd like
Hi!
I'm currently upgrading the Python version on of my projects to Python 3.11 (which added tomllib to the standard library) and was delighted to see that almost all packages I use dropped the requirement for
tomli
:The only dependencies that don't use the the built in
tomllib
on Python 3.11 isdjango-stubs
(https://github.com/typeddjango/django-stubs/issues/1408) andinterrogate
.I'm not sure if there's a need to switch from
toml
totomli
, but ideally neither should be required on Python 3.11 and the built intomllib
should be used.As far as I see, the replacement should be pretty straightforward and I'd be happy to provide a PR.
Lastly, an example of how
black
dealt with this:https://github.com/psf/black/blob/ef6e079901d53a42dfae4ab10b081ce7a73a47b5/pyproject.toml#L71
https://github.com/psf/black/blob/ef6e079901d53a42dfae4ab10b081ce7a73a47b5/src/black/files.py#L26-L34
Your Environment
interrogate
version(s) (interrogate --version
: 1.5.0