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

XMLWordPrintableJSON

    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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:
            Steve Silvester
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: