diff --git a/moto/core/models.py b/moto/core/models.py index 123e753f55e8..bc16305a88c9 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -305,7 +305,7 @@ def patch_client(client: botocore.client.BaseClient) -> None: # - in 99% of the cases there are no duplicate event handlers, so it doesn't matter if the check fails pass - client.meta.events.register("before-send", botocore_stubber) + client.meta.events.register("before-send", botocore_stubber) # type: ignore[arg-type] else: raise Exception(f"Argument {client} should be of type boto3.client")