Skip to content

Commit 475a2b6

Browse files
committed
PYTHON-2504 Clean up docs for keyword arguments
1 parent 5e92980 commit 475a2b6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pymongo/collection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,11 +2020,11 @@ def create_index(
20202020
pairs specifying the index to create
20212021
- `session` (optional): a
20222022
:class:`~pymongo.client_session.ClientSession`.
2023-
arguments
20242023
- `comment` (optional): A user-provided comment to attach to this
20252024
command.
20262025
- `**kwargs` (optional): any additional index creation
20272026
options (see the above list) should be passed as keyword
2027+
arguments.
20282028
20292029
.. versionchanged:: 4.4
20302030
Allow passing a list containing (key, direction) pairs
@@ -2072,7 +2072,6 @@ def drop_indexes(
20722072
:Parameters:
20732073
- `session` (optional): a
20742074
:class:`~pymongo.client_session.ClientSession`.
2075-
arguments
20762075
- `comment` (optional): A user-provided comment to attach to this
20772076
command.
20782077
- `**kwargs` (optional): optional arguments to the createIndexes

pymongo/operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,10 @@ def __init__(self, keys: _IndexKeyHint, **kwargs: Any) -> None:
480480
481481
:Parameters:
482482
- `keys`: a single key or a list containing (key, direction) pairs
483-
or keys specifying the index to create
483+
or keys specifying the index to create.
484484
- `**kwargs` (optional): any additional index creation
485485
options (see the above list) should be passed as keyword
486-
arguments
486+
arguments.
487487
488488
.. versionchanged:: 3.11
489489
Added the ``hidden`` option.

0 commit comments

Comments
 (0)