Skip to content

Commit

Permalink
Fix mypy failure (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst authored Sep 18, 2023
1 parent 4161348 commit 9e17fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynamodb/connection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e17fd4

Please sign in to comment.