Skip to content

Commit 225ff1f

Browse files
committed
Fix comments
1 parent 98eee8f commit 225ff1f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gridfs/asynchronous/grid_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def __init__(
11411141
"""
11421142
if not isinstance(root_collection, AsyncCollection):
11431143
raise TypeError(
1144-
f"root_collection must be an instance of AsyncCollection[Any], not {type(root_collection)}"
1144+
f"root_collection must be an instance of AsyncCollection, not {type(root_collection)}"
11451145
)
11461146

11471147
if not root_collection.write_concern.acknowledged:
@@ -1494,7 +1494,7 @@ def __init__(
14941494
"""
14951495
if not isinstance(root_collection, AsyncCollection):
14961496
raise TypeError(
1497-
f"root_collection must be an instance of AsyncCollection[Any], not {type(root_collection)}"
1497+
f"root_collection must be an instance of AsyncCollection, not {type(root_collection)}"
14981498
)
14991499
_disallow_transactions(session)
15001500

gridfs/synchronous/grid_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ def __init__(
11331133
"""
11341134
if not isinstance(root_collection, Collection):
11351135
raise TypeError(
1136-
f"root_collection must be an instance of Collection[Any], not {type(root_collection)}"
1136+
f"root_collection must be an instance of Collection, not {type(root_collection)}"
11371137
)
11381138

11391139
if not root_collection.write_concern.acknowledged:
@@ -1482,7 +1482,7 @@ def __init__(
14821482
"""
14831483
if not isinstance(root_collection, Collection):
14841484
raise TypeError(
1485-
f"root_collection must be an instance of Collection[Any], not {type(root_collection)}"
1485+
f"root_collection must be an instance of Collection, not {type(root_collection)}"
14861486
)
14871487
_disallow_transactions(session)
14881488

pymongo/network_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def buffer_updated(self, nbytes: int) -> None:
613613
result = self._pending_messages.popleft()
614614
else:
615615
result = asyncio.get_running_loop().create_future()
616-
# Future[Any] has been cancelled, close this connection
616+
# Future has been cancelled, close this connection
617617
if result.done():
618618
self.close(None)
619619
return

0 commit comments

Comments
 (0)