Skip to content

PYTHON-5306: [v4.12] - Fix use of public MongoClient attributes before connection (#2285) #2311

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Apr 24, 2025

Conversation

NoahStapp
Copy link
Contributor

No description provided.

@NoahStapp NoahStapp requested a review from ShaneHarvey April 24, 2025 17:52
@@ -13,6 +13,8 @@ Version 4.12.1 is a bug fix release.
could cause public ``pymongo.MongoClient`` and ``pymongo.AsyncMongoClient`` attributes (topology_description,
nodes, address, primary, secondaries, arbiters) to incorrectly return a Database, leading to type
errors such as: "NotImplementedError: Database objects do not implement truth value testing or bool()".
- Removed Eventlet testing against Python versions newer than 3.9 since
Eventlet is actively being sunset by its maintainers and has compatibility issues with PyMongo's dnspython dependency.
Copy link
Member

Choose a reason for hiding this comment

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

We didn't backport this.

@NoahStapp NoahStapp requested a review from ShaneHarvey April 24, 2025 18:04
@blink1073
Copy link
Member

This has conflicts now

@NoahStapp NoahStapp merged commit c11d0f4 into mongodb:v4.12 Apr 24, 2025
69 of 77 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants