Fix incorrect versionchanged marker for text_opts parameter in ClientEncryption.encrypt docstring

XMLWordPrintableJSON

    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      The ClientEncryption.encrypt docstring documents the text_opts parameter as having been added in 4.9, but it was actually added in 4.15.0.

      In pymongo/asynchronous/encryption.py (around line 1062):

      .. versionchanged:: 4.9
         Added the `text_opts` parameter.

      .. versionchanged:: 4.9
         Added the `range_opts` parameter.

      Both TextOpts and the text_opts parameter were introduced by commit d7316afb ("PYTHON-5328 CRUD Support in Driver for Prefix/Suffix/Substring Indexes", #2521, 2025-09-10).

      Definition of done

      Change versionchanged to 4.15

      Pitfalls

      None

            Assignee:
            Unassigned
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: