@@ -76,7 +76,6 @@ def __init__(
7676 read_preference : Optional [_ServerMode ] = None ,
7777 write_concern : Optional ["WriteConcern" ] = None ,
7878 read_concern : Optional ["ReadConcern" ] = None ,
79- timeout : Optional [float ] = None ,
8079 ) -> None :
8180 """Get a database by client and name.
8281
@@ -129,7 +128,6 @@ def __init__(
129128 read_preference or client .read_preference ,
130129 write_concern or client .write_concern ,
131130 read_concern or client .read_concern ,
132- timeout if timeout is not None else client .timeout ,
133131 )
134132
135133 if not isinstance (name , str ):
@@ -157,7 +155,6 @@ def with_options(
157155 read_preference : Optional [_ServerMode ] = None ,
158156 write_concern : Optional ["WriteConcern" ] = None ,
159157 read_concern : Optional ["ReadConcern" ] = None ,
160- timeout : Optional [float ] = None ,
161158 ) -> "Database[_DocumentType]" :
162159 """Get a clone of this database changing the specified settings.
163160
@@ -197,7 +194,6 @@ def with_options(
197194 read_preference or self .read_preference ,
198195 write_concern or self .write_concern ,
199196 read_concern or self .read_concern ,
200- timeout if timeout is not None else self .timeout ,
201197 )
202198
203199 def __eq__ (self , other : Any ) -> bool :
@@ -246,7 +242,6 @@ def get_collection(
246242 read_preference : Optional [_ServerMode ] = None ,
247243 write_concern : Optional ["WriteConcern" ] = None ,
248244 read_concern : Optional ["ReadConcern" ] = None ,
249- timeout : Optional [float ] = None ,
250245 ) -> Collection [_DocumentType ]:
251246 """Get a :class:`~pymongo.collection.Collection` with the given name
252247 and options.
@@ -293,7 +288,6 @@ def get_collection(
293288 read_preference ,
294289 write_concern ,
295290 read_concern ,
296- timeout = timeout ,
297291 )
298292
299293 def create_collection (
@@ -304,7 +298,6 @@ def create_collection(
304298 write_concern : Optional ["WriteConcern" ] = None ,
305299 read_concern : Optional ["ReadConcern" ] = None ,
306300 session : Optional ["ClientSession" ] = None ,
307- timeout : Optional [float ] = None ,
308301 check_exists : Optional [bool ] = True ,
309302 ** kwargs : Any ,
310303 ) -> Collection [_DocumentType ]:
@@ -459,7 +452,6 @@ def create_collection(
459452 write_concern ,
460453 read_concern ,
461454 session = s ,
462- timeout = timeout ,
463455 ** kwargs ,
464456 )
465457
0 commit comments