Skip to content

Commit b0fd5cb

Browse files
authored
Improve docstrings for SON parameters (#919)
1 parent a809b3c commit b0fd5cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymongo/collection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def _command(
246246
247247
:Parameters:
248248
- `sock_info` - A SocketInfo instance.
249-
- `command` - The command itself, as a SON instance.
249+
- `command` - The command itself, as a :class:`~bson.son.SON` instance.
250250
- `codec_options` (optional) - An instance of
251251
:class:`~bson.codec_options.CodecOptions`.
252252
- `check`: raise OperationFailure if there are errors
@@ -1443,7 +1443,7 @@ def find(self, *args: Any, **kwargs: Any) -> Cursor[_DocumentType]:
14431443
this :class:`Collection`.
14441444
14451445
:Parameters:
1446-
- `filter` (optional): a SON object specifying elements which
1446+
- `filter` (optional): a :class:`~bson.son.SON` object specifying elements which
14471447
must be present for a document to be included in the
14481448
result set
14491449
- `projection` (optional): a list of field names that should be

0 commit comments

Comments
 (0)