diff --git a/gridfs/__init__.py b/gridfs/__init__.py index 73425a9e53..5675e8f937 100644 --- a/gridfs/__init__.py +++ b/gridfs/__init__.py @@ -364,9 +364,9 @@ def find(self, *args: Any, **kwargs: Any) -> GridOutCursor: are associated with that session. :Parameters: - - `filter` (optional): a SON object specifying elements which - must be present for a document to be included in the - result set + - `filter` (optional): A query document that selects which files + to include in the result set. Can be an empty document to include + all files. - `skip` (optional): the number of files to omit (from the start of the result set) when returning the results - `limit` (optional): the maximum number of results to diff --git a/pymongo/__init__.py b/pymongo/__init__.py index 9581068036..69536d5e31 100644 --- a/pymongo/__init__.py +++ b/pymongo/__init__.py @@ -55,7 +55,7 @@ .. _text index: http://docs.mongodb.org/manual/core/index-text/ """ -version_tuple: Tuple[Union[int, str], ...] = (4, 1, 0, ".dev0") +version_tuple: Tuple[Union[int, str], ...] = (4, 1, 0) def get_version_string() -> str: diff --git a/pymongo/collection.py b/pymongo/collection.py index 9ab56dd41c..d6e308b260 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1423,7 +1423,7 @@ def find_one( def find(self, *args: Any, **kwargs: Any) -> Cursor[_DocumentType]: """Query the database. - The `filter` argument is a prototype document that all results + The `filter` argument is a query document that all results must match. For example: >>> db.test.find({"hello": "world"}) @@ -1443,9 +1443,9 @@ def find(self, *args: Any, **kwargs: Any) -> Cursor[_DocumentType]: this :class:`Collection`. :Parameters: - - `filter` (optional): a :class:`~bson.son.SON` object specifying elements which - must be present for a document to be included in the - result set + - `filter` (optional): A query document that selects which documents + to include in the result set. Can be an empty document to include + all documents. - `projection` (optional): a list of field names that should be returned in the result set or a dict specifying the fields to include or exclude. If `projection` is a list "_id" will diff --git a/setup.py b/setup.py index 5bae7dc211..d12918501d 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ except ImportError: _HAVE_SPHINX = False -version = "4.1.0.dev0" +version = "4.1.0" f = open("README.rst") try: