Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the standard library tomllib on sufficiently new python #2202

Merged
merged 1 commit into from
Dec 4, 2023

Commits on Dec 3, 2023

  1. use the standard library tomllib on sufficiently new python

    In python 3.11 it is no longer necessary to vendor (?) a toml
    implementation. The vendored one is now part of the standard library.
    Simply use that instead.
    
    Benefits include:
    - micro-optimization when using the isort library API in an application
      that already uses tomllib, to avoid reading yet another one from
      on-disk
    - seamless support for automatically dropping tomli once the minimum
      python version is upgraded, via tools such as pyupgrade
    - distributors who patch out isort to use the system tomli, do not
      actually have to package tomli for versions of python that have
      tomllib
    eli-schwartz committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    0c20647 View commit details
    Browse the repository at this point in the history