Skip to content

Commit

Permalink
PYTHON-3445 Fix documentation for with_options (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusgeo authored Oct 12, 2022
1 parent 438539e commit 4e11bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymongo/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def with_options(
>>> db1.read_preference
Primary()
>>> from pymongo import ReadPreference
>>> from pymongo.read_preferences import Secondary
>>> db2 = db1.with_options(read_preference=Secondary([{'node': 'analytics'}]))
>>> db1.read_preference
Primary()
Expand Down

0 comments on commit 4e11bda

Please sign in to comment.