-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
botocore 1.28 changed the signature of private method botocore.client.BaseClient._convert_to_request_dict adding an endpoint_url parameter. We are updating pynamodb to inspect the signature and add this parameter as needed.
- Loading branch information
Showing
5 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
""" | ||
__author__ = 'Jharrod LaFon' | ||
__license__ = 'MIT' | ||
__version__ = '4.3.3' | ||
__version__ = '4.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
Type-annotates the private botocore APIs that we're currently relying on. | ||
""" | ||
from typing import Any, Dict, Optional | ||
|
||
import botocore.client | ||
import botocore.credentials | ||
import botocore.endpoint | ||
import botocore.hooks | ||
import botocore.model | ||
import botocore.signers | ||
|
||
|
||
class BotocoreEndpointPrivate(botocore.endpoint.Endpoint): | ||
_event_emitter: botocore.hooks.HierarchicalEmitter | ||
|
||
|
||
class BotocoreRequestSignerPrivate(botocore.signers.RequestSigner): | ||
_credentials: botocore.credentials.Credentials | ||
|
||
|
||
class BotocoreBaseClientPrivate(botocore.client.BaseClient): | ||
_endpoint: BotocoreEndpointPrivate | ||
_request_signer: BotocoreRequestSignerPrivate | ||
_service_model: botocore.model.ServiceModel | ||
|
||
def _resolve_endpoint_ruleset( | ||
self, | ||
operation_model: botocore.model.OperationModel, | ||
params: Dict[str, Any], | ||
request_context: Dict[str, Any], | ||
ignore_signing_region: bool = ..., | ||
): | ||
... | ||
|
||
def _convert_to_request_dict( | ||
self, | ||
api_params: Dict[str, Any], | ||
operation_model: botocore.model.OperationModel, | ||
*, | ||
endpoint_url: str = ..., # added in botocore 1.28 | ||
context: Optional[Dict[str, Any]] = ..., | ||
headers: Optional[Dict[str, Any]] = ..., | ||
set_user_agent_header: bool = ..., | ||
) -> Dict[str, Any]: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters