From 0a5eae7058c4a216883cbef492ba0112c6b9f1a8 Mon Sep 17 00:00:00 2001 From: theRealProHacker <77074862+theRealProHacker@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:04:51 +0100 Subject: [PATCH 1/2] Small doc fix --- pymongo/synchronous/cursor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/synchronous/cursor.py b/pymongo/synchronous/cursor.py index 9a7637704f..b35098a327 100644 --- a/pymongo/synchronous/cursor.py +++ b/pymongo/synchronous/cursor.py @@ -1297,7 +1297,7 @@ def to_list(self, length: Optional[int] = None) -> list[_DocumentType]: >>> cursor.to_list() - Or, so read at most n items from the cursor:: + Or, to read at most n items from the cursor:: >>> cursor.to_list(n) From cb4ec6d2ff8e64aab8494acc71fd1c193cf454c7 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 2 Dec 2024 06:34:03 -0600 Subject: [PATCH 2/2] update async file --- pymongo/asynchronous/cursor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/asynchronous/cursor.py b/pymongo/asynchronous/cursor.py index 7d7ae4a5db..8193e53282 100644 --- a/pymongo/asynchronous/cursor.py +++ b/pymongo/asynchronous/cursor.py @@ -1299,7 +1299,7 @@ async def to_list(self, length: Optional[int] = None) -> list[_DocumentType]: >>> await cursor.to_list() - Or, so read at most n items from the cursor:: + Or, to read at most n items from the cursor:: >>> await cursor.to_list(n)