Skip to content

Conversation

NoahStapp
Copy link
Contributor

No description provided.

@NoahStapp NoahStapp requested a review from sleepyStick August 4, 2025 21:06
@NoahStapp NoahStapp requested a review from a team as a code owner August 4, 2025 21:06
else:
result = asyncio.get_running_loop().create_future()
# Future has been cancelled, close this connection
# Future[Any] has been cancelled, close this connection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this an accident?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, good catch! Fixed.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@NoahStapp NoahStapp merged commit bbb6f88 into mongodb:master Aug 6, 2025
78 of 81 checks passed
sleepyStick pushed a commit to sleepyStick/mongo-python-driver that referenced this pull request Aug 19, 2025
hint: Optional[_IndexKeyHint] = None,
**kwargs: Any,
) -> list:
) -> list[str]:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessarily correct:

import pymongo as pm
cl = pm.MongoClient()
co = cl["test"]["test"]
co.insert_one({"x": 1})
type(next(iter(co.distinct("x"))))  # int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants