Skip to content

Commit 7c305eb

Browse files
committed
Update changelog
1 parent f50c6f3 commit 7c305eb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

doc/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1316
Issues Resolved
1417
...............

pymongo/asynchronous/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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],

pymongo/synchronous/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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],

0 commit comments

Comments
 (0)