Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MOTOR-1187 Fix Motor Types #237

Merged
merged 3 commits into from
Nov 13, 2023
Merged

MOTOR-1187 Fix Motor Types #237

merged 3 commits into from
Nov 13, 2023

Conversation

blink1073
Copy link
Member

No description provided.

@blink1073 blink1073 requested a review from a team as a code owner November 10, 2023 14:47
@blink1073 blink1073 requested review from ShaneHarvey and removed request for a team November 10, 2023 14:47
Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

What about the read preference vs _ServerMode issue the user mentioned in the ticket? Can we do anything there?

AgnosticClientSession.with_transaction read_preference parameter is typed as Optional[_ServerMode] but takes Optional[pymongo.ReadPreference] type

I'm not sure why this would be specific to with_transaction though. It looks like we use _ServerMode everywhere we expect a read_preference right now.

@blink1073
Copy link
Member Author

I'm not sure why this would be specific to with_transaction though. It looks like we use _ServerMode everywhere we expect a read_preference right now.

It was already correct and we had a test for it, later in the thread the original reporter said it was a false alarm.

Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

Lgtm

@blink1073 blink1073 merged commit f0c9ff3 into mongodb:master Nov 13, 2023
29 of 32 checks passed
@blink1073 blink1073 deleted the MOTOR-1187 branch November 13, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants