From 9e17fd4b30b4ed13f2af5fcebac48292a333275f Mon Sep 17 00:00:00 2001 From: Ilya Priven Date: Sun, 17 Sep 2023 22:25:43 -0400 Subject: [PATCH] Fix mypy failure (#1195) --- pynamodb/connection/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynamodb/connection/base.py b/pynamodb/connection/base.py index bf4c6be8..3c9da3b6 100644 --- a/pynamodb/connection/base.py +++ b/pynamodb/connection/base.py @@ -416,7 +416,7 @@ def _make_api_call(self, operation_name: str, operation_kwargs: Dict, settings: # Implement the before-send event from botocore event_name = 'before-send.dynamodb.{}'.format(operation_model.name) event_responses = self.client._endpoint._event_emitter.emit(event_name, request=prepared_request) - event_response = first_non_none_response(event_responses) + event_response: Optional[botocore.awsrequest.AWSResponse] = first_non_none_response(event_responses) if event_response is None: http_response = self.client._endpoint.http_session.send(prepared_request)