Repository navigation
Clarify TOML versions in the compatibility recipe - #325
Open
tongwentao wants to merge 1 commit into
Open
tongwentao wants to merge 1 commit into
tongwentao wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #325 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 535 535
Branches 100 100
=========================================
Hits 535 535 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clarify the TOML-version boundary in the
tomli/tomllibcompatibility recipe. It provides the parser API across Python versions, but preferringtomllibon Python 3.11–3.14 selects TOML 1.0 even when an installed Tomli supports TOML 1.1.Add a short note identifying the Python 3.15 cutoff and advising applications that need TOML 1.1 on Python 3.8–3.14 to import Tomli 2.4+ directly. The existing fallback remains unchanged.
Behavior and review notes
The distinction matters when an application accepts TOML 1.1 input on several Python versions: the compatibility import may succeed yet select a parser that rejects that input. The note leaves the standard-library-first recipe intact for applications that only need TOML 1.0. It does not add a dependency constraint or change parser behavior.
Validation on Linux, Python 3.13.5:
TOMLDecodeErrorthrough the standard library.git diff --checkpassed.Documentation-only change, prepared and validated with Codex assistance. Mypyc builds and other interpreter/platform combinations were not run locally.