@@ -482,7 +482,7 @@ async def create_user(self, dbname, user, pwd=None, roles=None, **kwargs):
482482 async def drop_user (self , dbname , user ):
483483 await self .client [dbname ].command ("dropUser" , user , writeConcern = {"w" : self .w })
484484
485- def require_connection (self , func ) :
485+ def require_connection (self , func : Any ) -> Any :
486486 """Run a test only if we can connect to MongoDB."""
487487 return self ._require (
488488 lambda : True , # _require checks if we're connected
@@ -552,7 +552,7 @@ def require_no_fips(self, func):
552552 lambda : not self .fips_enabled , "Test cannot run on a FIPS-enabled host" , func = func
553553 )
554554
555- def require_replica_set (self , func ) :
555+ def require_replica_set (self , func : Any ) -> Any :
556556 """Run a test only if the client is connected to a replica set."""
557557 return self ._require (lambda : self .is_rs , "Not connected to a replica set" , func = func )
558558
@@ -687,7 +687,7 @@ def require_test_commands(self, func):
687687 lambda : self .test_commands_enabled , "Test commands must be enabled" , func = func
688688 )
689689
690- def require_failCommand_fail_point (self , func ) :
690+ def require_failCommand_fail_point (self , func : Any ) -> Any :
691691 """Run a test only if the server supports the failCommand fail
692692 point.
693693 """
0 commit comments