From 48f1e860c9040a0e8a2aca974d8944ef4883b1ae Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Tue, 24 Dec 2024 21:23:19 -0100 Subject: [PATCH] Admin: Fix mypy (#8435) --- moto/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")