Repository navigation
Conversation
Add a CONTRIBUTING.md section on replacing a removed field, module, or exported name with a shim that warns, and on scheduling the shim's deletion. Point AGENTS.md at the section. Bump the version to 3.0.4. Co-Authored-By: Claude <noreply@anthropic.com>
The field example marks the getter and setter with @deprecated, so the removed_in gate requires the deletion. A version test remains the advice for a shim that calls warn() directly. Co-Authored-By: Claude <noreply@anthropic.com>
wjohnald
marked this pull request as ready for review
November 20, 2026 16:00
This branch has not been deployed
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.
GEMD Python PR
Description
This PR adds a "Removing a capability from the public API" section to CONTRIBUTING.md. Contributors get one procedure to follow when they take a field, a module, or an exported name out of the package.
The section describes two shims, each with a short code example:
DeprecationWarning.DeprecationWarning, and each use of the stand-in class raises an error.Adding a shim takes a minor bump, and deleting it takes a major bump.
The
removed_ingate checks@deprecateddecorators only. Under the new section, contributors mark a shim with@deprecatedwhere a function or method accepts the decorator. A shim that callswarn()directly gets a test, and the test fails at the removal version.The field example matches the
allowed_namesshim in #242, so merge that PR first.This PR also adds a pointer to the section in AGENTS.md.
This PR changes documentation only. It bumps the version to 3.0.4 to pass the version check.
PR Type:
Adherence to team decisions
🤖 Generated with Claude Code