@@ -100,7 +100,7 @@ def __init__(self, database: AsyncDatabase, collection: str = "fs"):
100100 .. seealso:: The MongoDB documentation on `gridfs <https://dochub.mongodb.org/core/gridfs>`_.
101101 """
102102 if not isinstance (database , AsyncDatabase ):
103- raise TypeError (f"database must be an instance of Database, not { type (database )} . " )
103+ raise TypeError (f"database must be an instance of Database, not { type (database )} " )
104104
105105 database = _clear_entity_type_registry (database )
106106
@@ -503,7 +503,7 @@ def __init__(
503503 .. seealso:: The MongoDB documentation on `gridfs <https://dochub.mongodb.org/core/gridfs>`_.
504504 """
505505 if not isinstance (db , AsyncDatabase ):
506- raise TypeError (f"database must be an instance of AsyncDatabase, not { type (db )} . " )
506+ raise TypeError (f"database must be an instance of AsyncDatabase, not { type (db )} " )
507507
508508 db = _clear_entity_type_registry (db )
509509
@@ -1083,7 +1083,7 @@ def __init__(
10831083 """
10841084 if not isinstance (root_collection , AsyncCollection ):
10851085 raise TypeError (
1086- f"root_collection must be an instance of AsyncCollection, not { type (root_collection )} . "
1086+ f"root_collection must be an instance of AsyncCollection, not { type (root_collection )} "
10871087 )
10881088
10891089 if not root_collection .write_concern .acknowledged :
@@ -1439,7 +1439,7 @@ def __init__(
14391439 """
14401440 if not isinstance (root_collection , AsyncCollection ):
14411441 raise TypeError (
1442- f"root_collection must be an instance of AsyncCollection, not { type (root_collection )} . "
1442+ f"root_collection must be an instance of AsyncCollection, not { type (root_collection )} "
14431443 )
14441444 _disallow_transactions (session )
14451445
0 commit comments