Skip to content

Commit 4e11bda

Browse files
authored
PYTHON-3445 Fix documentation for with_options (#1075)
1 parent 438539e commit 4e11bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def with_options(
161161
162162
>>> db1.read_preference
163163
Primary()
164-
>>> from pymongo import ReadPreference
164+
>>> from pymongo.read_preferences import Secondary
165165
>>> db2 = db1.with_options(read_preference=Secondary([{'node': 'analytics'}]))
166166
>>> db1.read_preference
167167
Primary()

0 commit comments

Comments
 (0)