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:
9
9
- Support for configuring DEK cache lifetime via the ``key_expiration_ms `` argument to
10
10
:class: `~pymongo.encryption_options.AutoEncryptionOpts `.
11
11
- 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.
12
15
13
16
Issues Resolved
14
17
...............
Original file line number Diff line number Diff line change @@ -3169,7 +3169,7 @@ async def distinct(
3169
3169
if hint is not None :
3170
3170
if not isinstance (hint , str ):
3171
3171
hint = helpers_shared ._index_document (hint )
3172
- cmd ["hint" ] = hint
3172
+ cmd ["hint" ] = hint # type: ignore[assignment]
3173
3173
3174
3174
async def _cmd (
3175
3175
session : Optional [AsyncClientSession ],
Original file line number Diff line number Diff line change @@ -3162,7 +3162,7 @@ def distinct(
3162
3162
if hint is not None :
3163
3163
if not isinstance (hint , str ):
3164
3164
hint = helpers_shared ._index_document (hint )
3165
- cmd ["hint" ] = hint
3165
+ cmd ["hint" ] = hint # type: ignore[assignment]
3166
3166
3167
3167
def _cmd (
3168
3168
session : Optional [ClientSession ],
You can’t perform that action at this time.
0 commit comments