From fa1adcd9493bd848c1883d3a46e5ca4e868916fd Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 1 Sep 2026 06:39:40 -0500 Subject: [PATCH] PYTHON-6007 Fix versionchanged marker for text_opts in ClientEncryption.encrypt The text_opts parameter was added in 4.15.0 (PYTHON-5328, GH-2521), not 4.9 as the docstring copy-pasted from the adjacent range_opts entry. --- pymongo/asynchronous/encryption.py | 2 +- pymongo/synchronous/encryption.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymongo/asynchronous/encryption.py b/pymongo/asynchronous/encryption.py index cf7612db6d..0cdbc532cc 100644 --- a/pymongo/asynchronous/encryption.py +++ b/pymongo/asynchronous/encryption.py @@ -1089,7 +1089,7 @@ async def encrypt( Added the `string_opts` parameter, replacing the deprecated `text_opts`. - .. versionchanged:: 4.9 + .. versionchanged:: 4.15 Added the `text_opts` parameter. .. versionchanged:: 4.9 diff --git a/pymongo/synchronous/encryption.py b/pymongo/synchronous/encryption.py index f2cd871270..8b22eda91f 100644 --- a/pymongo/synchronous/encryption.py +++ b/pymongo/synchronous/encryption.py @@ -1082,7 +1082,7 @@ def encrypt( Added the `string_opts` parameter, replacing the deprecated `text_opts`. - .. versionchanged:: 4.9 + .. versionchanged:: 4.15 Added the `text_opts` parameter. .. versionchanged:: 4.9