Skip to content

Commit d531404

Browse files
committed
NS feedback
1 parent 8e569b1 commit d531404

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/databases-collections.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ the cursor to print the results. Select the :guilabel:`Synchronous` or
222222
database = client["test_database"]
223223
collection_list = await database.list_collections()
224224

225-
async for c in collection_list:
225+
for c in collection_list:
226226
print(c)
227227

228228
To query for only the names of the collections in the database, call the
@@ -510,7 +510,7 @@ generic type for a ``Database`` type hint. Select the :guilabel:`Synchronous` or
510510

511511
from typing import TypedDict
512512
from pymongo import AsyncMongoClient
513-
from pymongo.database import Database
513+
from pymongo.asynchronous.database import Database
514514

515515
class Movie(TypedDict):
516516
name: str
@@ -539,7 +539,7 @@ documents in the collection. Then, include the class name as the generic type fo
539539

540540
from typing import TypedDict
541541
from pymongo import MongoClient
542-
from pymongo.collection import Collection
542+
from pymongo.asynchronous.collection import Collection
543543

544544
class Movie(TypedDict):
545545
name: str

0 commit comments

Comments
 (0)