File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ PyMongo 4.12 brings a number of changes including:
99- Support for configuring DEK cache lifetime via the ``key_expiration_ms `` argument to
1010 :class: `~pymongo.encryption_options.AutoEncryptionOpts `.
1111- Support for $lookup in CSFLE and QE supported on MongoDB 8.1+.
12+ - Added index hinting support to the
13+ :meth: `~pymongo.asynchronous.collection.AsyncCollection.distinct ` and
14+ :meth: `~pymongo.collection.Collection.distinct ` commands.
1215
1316Issues Resolved
1417...............
Original file line number Diff line number Diff line change @@ -3169,7 +3169,7 @@ async def distinct(
31693169 if hint is not None :
31703170 if not isinstance (hint , str ):
31713171 hint = helpers_shared ._index_document (hint )
3172- cmd ["hint" ] = hint
3172+ cmd ["hint" ] = hint # type: ignore[assignment]
31733173
31743174 async def _cmd (
31753175 session : Optional [AsyncClientSession ],
Original file line number Diff line number Diff line change @@ -3162,7 +3162,7 @@ def distinct(
31623162 if hint is not None :
31633163 if not isinstance (hint , str ):
31643164 hint = helpers_shared ._index_document (hint )
3165- cmd ["hint" ] = hint
3165+ cmd ["hint" ] = hint # type: ignore[assignment]
31663166
31673167 def _cmd (
31683168 session : Optional [ClientSession ],
You can’t perform that action at this time.
0 commit comments