Skip to content

PYTHON-6007 Fix versionchanged marker for text_opts in ClientEncryption.encrypt - #3028

Merged
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:claude/python-6007-jira-ticket-0c9e30
Sep 1, 2026
Merged

PYTHON-6007 Fix versionchanged marker for text_opts in ClientEncryption.encrypt#3028
blink1073 merged 1 commit into
mongodb:mainfrom
blink1073:claude/python-6007-jira-ticket-0c9e30

Conversation

@blink1073

@blink1073 blink1073 commented Sep 1, 2026

Copy link
Copy Markdown
Member

PYTHON-6007

Summary

ClientEncryption.encrypt's docstring said the text_opts parameter was added in 4.9, but it was actually added in 4.15.0.

Motivation

The versionchanged:: 4.9 entry for text_opts was copy-pasted from the adjacent range_opts entry when text_opts was introduced in PYTHON-5328 (GH-2521), which shipped in 4.15.0. The range_opts entry itself is correct as-is; it really was added in 4.9.

Changes

  • Corrected the text_opts versionchanged marker from 4.9 to 4.15 in pymongo/asynchronous/encryption.py.
  • Regenerated the mirrored change in pymongo/synchronous/encryption.py via just synchro.

Testing

  • just lint and just typing (the two pre-existing pymongo/ocsp_support.py mypy errors reproduce identically on main and are unrelated to this change).
  • Docstring-only change; no behavior to test.

…on.encrypt

The text_opts parameter was added in 4.15.0 (PYTHON-5328, mongodbGH-2521), not
4.9 as the docstring copy-pasted from the adjacent range_opts entry.
@blink1073
blink1073 force-pushed the claude/python-6007-jira-ticket-0c9e30 branch from 0deceb3 to fa1adcd Compare September 1, 2026 11:48
@blink1073
blink1073 marked this pull request as ready for review September 1, 2026 11:49
@blink1073
blink1073 requested a review from a team as a code owner September 1, 2026 11:49
@blink1073
blink1073 requested review from aclark4life and a lite review from Copilot September 1, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the Sphinx versionchanged marker in ClientEncryption.encrypt’s docstring to accurately reflect when text_opts was introduced, aligning documentation with the actual release history.

Changes:

  • Updated the text_opts .. versionchanged:: marker from 4.9 to 4.15 in the async encryption implementation docstring.
  • Regenerated the synchronized (generated) synchronous file to mirror the same docstring correction.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pymongo/asynchronous/encryption.py Fixes the text_opts docstring versionchanged marker to 4.15.
pymongo/synchronous/encryption.py Mirrors the same docstring marker correction via synchro regeneration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@blink1073
blink1073 merged commit 6506f48 into mongodb:main Sep 1, 2026
90 checks passed
@blink1073
blink1073 deleted the claude/python-6007-jira-ticket-0c9e30 branch September 1, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants