Repository navigation
chore: remove unused constants in metadata - #1488
Merged
Merged
Conversation
henryiii
approved these changes
Nov 4, 2026
henryiii
left a comment
Contributor
There was a problem hiding this comment.
Did a quick history check, below.
🤖 AI text below 🤖
Both came in with 61e6efb, "Support enriched metadata in packaging.metadata" (#686, Brett Cannon, 2023-08-18).
_DICT_FIELDSwas used at first. The_Validator.__get__fallback used it to return{}whenproject_urlswas missing, and a test (test_dict_default) was parametrized on it. Commit 09f131b, "Default optional metadata values to None" (#734, 2023-10-15), changed the fallback toinstance._raw.get(self.name)and removed that test. Since then nothing has used it._NOT_FOUNDwas never used. The only reference in 61e6efb is its definition. It is most likely left over from an earlier draft of that PR.
Contributor
|
Out of curiosity, I ran 🤖 AI text below 🤖
|
henryiii
force-pushed
the
remove-unused-constants
branch
from
November 4, 2026 18:16
21ae205 to
3390672
Compare
Contributor
Author
|
Thanks for checking the history and merging this! Greatly appreciate the extra findings also |
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.
Summary
Hi! This is a cleanup.
_DICT_FIELDSand_NOT_FOUNDfrommetadata.py, nothing references them (the other field sets are still used)Found with Skylos, a deterministic tool. No AI was used in this PR.