botocore-stubs 1.33.7__py3-none-any.whl → 1.33.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of botocore-stubs might be problematic. Click here for more details.

@@ -1,5 +1,5 @@
1
1
  import logging
2
- from typing import Any, Callable, Dict, Tuple
2
+ from typing import Any, Callable, Mapping, Tuple
3
3
 
4
4
  from botocore.session import Session
5
5
 
@@ -13,7 +13,7 @@ BOTOCORE_ROOT: str
13
13
  UNSIGNED: Any
14
14
  __version__: str
15
15
 
16
- def xform_name(name: str, sep: str = ..., _xform_cache: Dict[str, str] = ...) -> str: ...
16
+ def xform_name(name: str, sep: str = ..., _xform_cache: Mapping[str, str] = ...) -> str: ...
17
17
  def register_initializer(callback: Callable[[Session], None]) -> None: ...
18
18
  def unregister_initializer(callback: Callable[[Session], None]) -> None: ...
19
19
  def invoke_initializers(session: Session) -> None: ...
botocore-stubs/args.pyi CHANGED
@@ -1,6 +1,6 @@
1
1
  import sys
2
2
  from logging import Logger
3
- from typing import Any, Dict, List, Optional, Union
3
+ from typing import Any, Dict, List, Mapping, Optional, Union
4
4
 
5
5
  from botocore.client import ClientEndpointBridge
6
6
  from botocore.config import Config as Config
@@ -57,12 +57,12 @@ class ClientArgsCreator:
57
57
  endpoint_url: Optional[str],
58
58
  verify: Optional[Union[str, bool]],
59
59
  credentials: Optional[Any],
60
- scoped_config: Optional[Dict[str, Any]],
60
+ scoped_config: Optional[Mapping[str, Any]],
61
61
  client_config: Optional[Config],
62
62
  endpoint_bridge: ClientEndpointBridge,
63
63
  auth_token: Optional[str] = ...,
64
- endpoints_ruleset_data: Optional[Dict[str, Any]] = ...,
65
- partition_data: Optional[Dict[str, Any]] = ...,
64
+ endpoints_ruleset_data: Optional[Mapping[str, Any]] = ...,
65
+ partition_data: Optional[Mapping[str, Any]] = ...,
66
66
  ) -> _GetClientArgsTypeDef: ...
67
67
  def compute_client_args(
68
68
  self,
@@ -72,14 +72,14 @@ class ClientArgsCreator:
72
72
  region_name: str,
73
73
  endpoint_url: str,
74
74
  is_secure: bool,
75
- scoped_config: Optional[Dict[str, Any]],
75
+ scoped_config: Optional[Mapping[str, Any]],
76
76
  ) -> Any: ...
77
77
  def compute_s3_config(self, client_config: Optional[Config]) -> Dict[str, Any]: ...
78
78
  def compute_endpoint_resolver_builtin_defaults(
79
79
  self,
80
80
  region_name: str,
81
81
  service_name: str,
82
- s3_config: Dict[str, Any],
82
+ s3_config: Mapping[str, Any],
83
83
  endpoint_bridge: ClientEndpointBridge,
84
84
  client_endpoint_url: str,
85
85
  legacy_endpoint_url: str,
@@ -1,6 +1,6 @@
1
1
  from collections.abc import MutableMapping
2
2
  from logging import Logger
3
- from typing import Any, Dict, Iterator, Mapping, Optional, Type, TypeVar
3
+ from typing import IO, Any, Dict, Iterator, Mapping, Optional, Type, TypeVar, Union
4
4
 
5
5
  from botocore.compat import HTTPHeaders as HTTPHeaders
6
6
  from botocore.compat import HTTPResponse as HTTPResponse
@@ -45,12 +45,12 @@ class AWSHTTPSConnectionPool(HTTPSConnectionPool):
45
45
  ConnectionCls: Type[AWSHTTPSConnection] # type: ignore [misc,assignment]
46
46
 
47
47
  def prepare_request_dict(
48
- request_dict: Dict[str, Any],
48
+ request_dict: Mapping[str, Any],
49
49
  endpoint_url: str,
50
50
  context: Optional[Any] = ...,
51
51
  user_agent: Optional[Any] = ...,
52
52
  ) -> None: ...
53
- def create_request_object(request_dict: Dict[str, Any]) -> Any: ...
53
+ def create_request_object(request_dict: Mapping[str, Any]) -> Any: ...
54
54
 
55
55
  class AWSPreparedRequest:
56
56
  def __init__(
@@ -58,13 +58,13 @@ class AWSPreparedRequest:
58
58
  method: str,
59
59
  url: str,
60
60
  headers: HTTPHeaders,
61
- body: str,
61
+ body: Union[str, bytes, bytearray, IO[bytes], IO[str], None],
62
62
  stream_output: bool,
63
63
  ) -> None:
64
64
  self.method: str
65
65
  self.url: str
66
66
  self.headers: HTTPHeaders
67
- self.body: str
67
+ self.body: Union[str, bytes, bytearray, IO[bytes], IO[str], None]
68
68
  self.stream_output: bool
69
69
 
70
70
  def reset_stream(self) -> None: ...
@@ -76,7 +76,7 @@ class AWSRequest:
76
76
  url: Optional[str] = ...,
77
77
  headers: Optional[Mapping[str, Any]] = ...,
78
78
  data: Optional[Any] = ...,
79
- params: Optional[Dict[str, Any]] = ...,
79
+ params: Optional[Mapping[str, Any]] = ...,
80
80
  auth_path: Optional[str] = ...,
81
81
  stream_output: bool = ...,
82
82
  ) -> None:
botocore-stubs/compat.pyi CHANGED
@@ -5,7 +5,7 @@ from http.client import HTTPMessage
5
5
  from http.client import HTTPResponse as HTTPResponse
6
6
  from itertools import zip_longest as zip_longest
7
7
  from logging import Logger
8
- from typing import Any, Dict, Iterable, Mapping, Optional, Pattern, Tuple, Type, TypeVar
8
+ from typing import Any, Iterable, Mapping, Optional, Pattern, Tuple, Type, TypeVar
9
9
  from urllib.parse import parse_qs as parse_qs
10
10
  from urllib.parse import parse_qsl as parse_qsl
11
11
  from urllib.parse import quote as quote
@@ -41,11 +41,11 @@ def ensure_bytes(s: Any, encoding: str = ..., errors: str = ...) -> Any: ...
41
41
  XMLParseError = ETree.ParseError
42
42
 
43
43
  def filter_ssl_warnings() -> None: ...
44
- def _from_dict(cls: Type[_R], d: Dict[str, Any]) -> _R: ...
44
+ def _from_dict(cls: Type[_R], d: Mapping[str, Any]) -> _R: ...
45
45
 
46
46
  from_dict: Any
47
47
 
48
- def _from_pairs(cls: Type[_R], d: Dict[str, Any]) -> _R: ...
48
+ def _from_pairs(cls: Type[_R], d: Mapping[str, Any]) -> _R: ...
49
49
 
50
50
  from_pairs: Any
51
51
 
@@ -2,7 +2,7 @@ import io
2
2
  from gzip import GzipFile as GzipFile
3
3
  from gzip import compress as gzip_compress
4
4
  from logging import Logger
5
- from typing import Any, Callable, Dict
5
+ from typing import Any, Callable, Dict, Mapping
6
6
 
7
7
  from botocore.compat import urlencode as urlencode
8
8
  from botocore.config import Config
@@ -11,7 +11,7 @@ from botocore.utils import determine_content_length as determine_content_length
11
11
  logger: Logger = ...
12
12
 
13
13
  def maybe_compress_request(
14
- config: Config, request_dict: Dict[str, Any], operation_model: str
14
+ config: Config, request_dict: Mapping[str, Any], operation_model: str
15
15
  ) -> None: ...
16
16
 
17
17
  COMPRESSION_MAPPING: Dict[str, Callable[[io.BytesIO], io.BytesIO]] = ...
botocore-stubs/config.pyi CHANGED
@@ -1,5 +1,5 @@
1
1
  import sys
2
- from typing import Dict, Optional, Tuple, TypeVar, Union
2
+ from typing import Dict, Mapping, Optional, Tuple, TypeVar, Union
3
3
 
4
4
  from botocore.compat import OrderedDict as OrderedDict
5
5
  from botocore.endpoint import DEFAULT_TIMEOUT as DEFAULT_TIMEOUT
@@ -45,7 +45,7 @@ class Config:
45
45
  read_timeout: Optional[Union[float, int]] = 60,
46
46
  parameter_validation: Optional[bool] = True,
47
47
  max_pool_connections: Optional[int] = 10,
48
- proxies: Optional[Dict[str, str]] = None,
48
+ proxies: Optional[Mapping[str, str]] = None,
49
49
  proxies_config: Optional[_ProxiesConfigDict] = None,
50
50
  s3: Optional[_S3Dict] = None,
51
51
  retries: Optional[_RetryDict] = None,
@@ -93,9 +93,9 @@ class ConstantProvider(BaseProvider):
93
93
  class ConfiguredEndpointProvider(BaseProvider):
94
94
  def __init__(
95
95
  self,
96
- full_config: Dict[str, Any],
97
- scoped_config: Dict[str, Any],
96
+ full_config: Mapping[str, Any],
97
+ scoped_config: Mapping[str, Any],
98
98
  client_name: str,
99
- environ: Optional[Dict[str, str]] = ...,
99
+ environ: Optional[Mapping[str, str]] = ...,
100
100
  ) -> None: ...
101
101
  def provide(self) -> Any: ...
@@ -1,5 +1,5 @@
1
1
  from logging import Logger
2
- from typing import Any, Callable, Dict, List, NamedTuple, Optional
2
+ from typing import Any, Callable, Dict, List, Mapping, NamedTuple, Optional
3
3
 
4
4
  from botocore import UNSIGNED as UNSIGNED
5
5
  from botocore.compat import compat_shell_split as compat_shell_split
@@ -234,7 +234,7 @@ class AssumeRoleProvider(CredentialProvider):
234
234
  cache: Any = ...
235
235
  def __init__(
236
236
  self,
237
- load_config: Callable[[], Dict[str, Any]],
237
+ load_config: Callable[[], Mapping[str, Any]],
238
238
  client_creator: Callable[..., Any],
239
239
  cache: Dict[str, Any],
240
240
  profile_name: str,
@@ -272,7 +272,7 @@ class ContainerProvider(CredentialProvider):
272
272
  ENV_VAR_AUTH_TOKEN: str = ...
273
273
  ENV_VAR_AUTH_TOKEN_FILE: str = ...
274
274
  def __init__(
275
- self, environ: Optional[Dict[str, str]] = ..., fetcher: Optional[Any] = ...
275
+ self, environ: Optional[Mapping[str, str]] = ..., fetcher: Optional[Any] = ...
276
276
  ) -> None: ...
277
277
  def load(self) -> RefreshableCredentials: ...
278
278
 
@@ -2,7 +2,19 @@ import logging
2
2
  import re
3
3
  from enum import Enum
4
4
  from string import Formatter
5
- from typing import Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Pattern, Type, Union
5
+ from typing import (
6
+ Any,
7
+ Callable,
8
+ Dict,
9
+ Iterable,
10
+ List,
11
+ Mapping,
12
+ NamedTuple,
13
+ Optional,
14
+ Pattern,
15
+ Type,
16
+ Union,
17
+ )
6
18
 
7
19
  from botocore import xform_name as xform_name
8
20
  from botocore.compat import quote as quote
@@ -24,20 +36,22 @@ ARN_PARSER: ArnParser = ...
24
36
  STRING_FORMATTER: Formatter = ...
25
37
 
26
38
  class RuleSetStandardLibrary:
27
- def __init__(self, partitions_data: Dict[str, Any]) -> None:
39
+ def __init__(self, partitions_data: Mapping[str, Any]) -> None:
28
40
  self.partitions_data: Dict[str, Any]
29
41
 
30
42
  def is_func(self, argument: Any) -> bool: ...
31
43
  def is_ref(self, argument: Any) -> bool: ...
32
44
  def is_template(self, argument: Any) -> bool: ...
33
- def resolve_template_string(self, value: str, scope_vars: Dict[str, Any]) -> str: ...
34
- def resolve_value(self, value: str, scope_vars: Dict[str, Any]) -> Any: ...
45
+ def resolve_template_string(self, value: str, scope_vars: Mapping[str, Any]) -> str: ...
46
+ def resolve_value(self, value: str, scope_vars: Mapping[str, Any]) -> Any: ...
35
47
  def convert_func_name(self, value: str) -> str: ...
36
- def call_function(self, func_signature: Dict[str, Any], scope_vars: Dict[str, Any]) -> Any: ...
48
+ def call_function(
49
+ self, func_signature: Mapping[str, Any], scope_vars: Mapping[str, Any]
50
+ ) -> Any: ...
37
51
  def is_set(self, value: Any) -> bool: ...
38
- def get_attr(self, value: Dict[str, Any], path: str) -> Any: ...
39
- def format_partition_output(self, partition: Dict[str, Any]) -> Dict[str, Any]: ...
40
- def is_partition_match(self, region: str, partition: Dict[str, Any]) -> bool: ...
52
+ def get_attr(self, value: Mapping[str, Any], path: str) -> Any: ...
53
+ def format_partition_output(self, partition: Mapping[str, Any]) -> Dict[str, Any]: ...
54
+ def is_partition_match(self, region: str, partition: Mapping[str, Any]) -> bool: ...
41
55
  def aws_partition(self, value: str) -> Dict[str, Any]: ...
42
56
  def aws_parse_arn(self, value: str) -> Dict[str, Any]: ...
43
57
  def is_valid_host_label(self, value: str, allow_subdomains: bool) -> bool: ...
@@ -58,9 +72,9 @@ class BaseRule:
58
72
  self.conditions: Iterable[Callable[..., Any]]
59
73
  self.documentation: Optional[str]
60
74
 
61
- def evaluate(self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary) -> Any: ...
75
+ def evaluate(self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary) -> Any: ...
62
76
  def evaluate_conditions(
63
- self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary
77
+ self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary
64
78
  ) -> bool: ...
65
79
 
66
80
  class RuleSetEndpoint(NamedTuple):
@@ -69,34 +83,34 @@ class RuleSetEndpoint(NamedTuple):
69
83
  headers: Dict[str, Any]
70
84
 
71
85
  class EndpointRule(BaseRule):
72
- def __init__(self, endpoint: Dict[str, Any], **kwargs: Any) -> None:
86
+ def __init__(self, endpoint: Mapping[str, Any], **kwargs: Any) -> None:
73
87
  self.endpoint: Dict[str, Any]
74
88
 
75
89
  def evaluate(
76
- self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary
90
+ self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary
77
91
  ) -> RuleSetEndpoint: ...
78
92
  def resolve_properties(
79
93
  self,
80
- properties: Union[Dict[str, Any], List[Any], str],
81
- scope_vars: Dict[str, Any],
94
+ properties: Union[Mapping[str, Any], List[Any], str],
95
+ scope_vars: Mapping[str, Any],
82
96
  rule_lib: RuleSetStandardLibary,
83
97
  ) -> Dict[str, Any]: ...
84
98
  def resolve_headers(
85
- self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary
99
+ self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary
86
100
  ) -> Dict[str, Any]: ...
87
101
 
88
102
  class ErrorRule(BaseRule):
89
103
  def __init__(self, error: Any, **kwargs: Any) -> None:
90
104
  self.error: Any
91
105
 
92
- def evaluate(self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary) -> None: ...
106
+ def evaluate(self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary) -> None: ...
93
107
 
94
108
  class TreeRule(BaseRule):
95
- def __init__(self, rules: Iterable[Dict[str, Any]], **kwargs: Any) -> None:
109
+ def __init__(self, rules: Iterable[Mapping[str, Any]], **kwargs: Any) -> None:
96
110
  self.rules: Iterable[Dict[str, Any]]
97
111
 
98
112
  def evaluate(
99
- self, scope_vars: Dict[str, Any], rule_lib: RuleSetStandardLibary
113
+ self, scope_vars: Mapping[str, Any], rule_lib: RuleSetStandardLibary
100
114
  ) -> Optional[RuleSetEndpoint]: ...
101
115
 
102
116
  class RuleCreator:
@@ -136,8 +150,8 @@ class RuleSet:
136
150
  def __init__(
137
151
  self,
138
152
  version: str,
139
- parameters: Dict[str, Any],
140
- rules: Iterable[Dict[str, Any]],
153
+ parameters: Mapping[str, Any],
154
+ rules: Iterable[Mapping[str, Any]],
141
155
  partitions: Any,
142
156
  documentation: Optional[str] = ...,
143
157
  ) -> None:
@@ -147,11 +161,11 @@ class RuleSet:
147
161
  self.rule_lib: RuleSetStandardLibary
148
162
  self.documentation: Optional[str]
149
163
 
150
- def process_input_parameters(self, input_params: Dict[str, Any]) -> None: ...
151
- def evaluate(self, input_parameters: Dict[str, Any]) -> Any: ...
164
+ def process_input_parameters(self, input_params: Mapping[str, Any]) -> None: ...
165
+ def evaluate(self, input_parameters: Mapping[str, Any]) -> Any: ...
152
166
 
153
167
  class EndpointProvider:
154
- def __init__(self, ruleset_data: Dict[str, Any], partition_data: Dict[str, Any]) -> None:
168
+ def __init__(self, ruleset_data: Mapping[str, Any], partition_data: Mapping[str, Any]) -> None:
155
169
  self.ruleset: RuleSet
156
170
 
157
171
  def resolve_endpoint(self, **input_parameters: Any) -> RuleSetEndpoint: ...
@@ -53,24 +53,24 @@ class StreamingChecksumBody(StreamingBody):
53
53
  def read(self, amt: Optional[int] = ...) -> bytes: ...
54
54
 
55
55
  def resolve_checksum_context(
56
- request: Dict[str, Any], operation_model: OperationModel, params: Mapping[str, Any]
56
+ request: Mapping[str, Any], operation_model: OperationModel, params: Mapping[str, Any]
57
57
  ) -> None: ...
58
58
  def resolve_request_checksum_algorithm(
59
- request: Dict[str, Any],
59
+ request: Mapping[str, Any],
60
60
  operation_model: OperationModel,
61
61
  params: Mapping[str, Any],
62
62
  supported_algorithms: Optional[Sequence[str]] = ...,
63
63
  ) -> None: ...
64
- def apply_request_checksum(request: Dict[str, Any]) -> None: ...
64
+ def apply_request_checksum(request: Mapping[str, Any]) -> None: ...
65
65
  def resolve_response_checksum_algorithms(
66
- request: Dict[str, Any],
66
+ request: Mapping[str, Any],
67
67
  operation_model: OperationModel,
68
68
  params: Mapping[str, Any],
69
69
  supported_algorithms: Optional[Sequence[str]] = ...,
70
70
  ) -> None: ...
71
71
  def handle_checksum_body(
72
72
  http_response: AWSHTTPResponse,
73
- response: Dict[str, Any],
73
+ response: Mapping[str, Any],
74
74
  context: Mapping[str, Any],
75
75
  operation_model: OperationModel,
76
76
  ) -> None: ...
@@ -1,5 +1,5 @@
1
1
  from logging import Logger
2
- from typing import Any, Dict, List, Optional, Tuple, Union
2
+ from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
3
3
 
4
4
  from botocore.awsrequest import AWSPreparedRequest, AWSRequest, AWSResponse
5
5
  from botocore.compat import IPV6_ADDRZ_RE as IPV6_ADDRZ_RE
@@ -35,8 +35,8 @@ def mask_proxy_url(proxy_url: str) -> str: ...
35
35
  class ProxyConfiguration:
36
36
  def __init__(
37
37
  self,
38
- proxies: Optional[Dict[str, Any]] = ...,
39
- proxies_settings: Optional[Dict[str, Any]] = ...,
38
+ proxies: Optional[Mapping[str, Any]] = ...,
39
+ proxies_settings: Optional[Mapping[str, Any]] = ...,
40
40
  ) -> None: ...
41
41
  def proxy_url_for(self, url: str) -> str: ...
42
42
  def proxy_headers_for(self, proxy_url: str) -> Dict[str, Any]: ...
@@ -47,12 +47,12 @@ class URLLib3Session:
47
47
  def __init__(
48
48
  self,
49
49
  verify: bool = ...,
50
- proxies: Optional[Dict[str, Any]] = ...,
50
+ proxies: Optional[Mapping[str, Any]] = ...,
51
51
  timeout: Optional[int] = ...,
52
52
  max_pool_connections: int = ...,
53
53
  socket_options: Optional[List[str]] = ...,
54
54
  client_cert: Optional[Union[str, Tuple[str, str]]] = ...,
55
- proxies_config: Optional[Dict[str, Any]] = ...,
55
+ proxies_config: Optional[Mapping[str, Any]] = ...,
56
56
  ) -> None: ...
57
57
  def close(self) -> None: ...
58
58
  def send(self, request: Union[AWSRequest, AWSPreparedRequest]) -> AWSResponse: ...
botocore-stubs/model.pyi CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type, TypeVar, Union
1
+ from typing import Any, Dict, List, Mapping, NamedTuple, Optional, Tuple, Type, TypeVar, Union
2
2
 
3
3
  from botocore.utils import CachedProperty
4
4
 
@@ -21,7 +21,7 @@ class Shape:
21
21
  def __init__(
22
22
  self,
23
23
  shape_name: str,
24
- shape_model: Dict[str, Any],
24
+ shape_model: Mapping[str, Any],
25
25
  shape_resolver: Optional["ShapeResolver"] = ...,
26
26
  ) -> None:
27
27
  self.name: str
@@ -76,12 +76,12 @@ class ClientContextParameter(NamedTuple):
76
76
 
77
77
  class ServiceModel:
78
78
  def __init__(
79
- self, service_description: Dict[str, Any], service_name: Optional[str] = ...
79
+ self, service_description: Mapping[str, Any], service_name: Optional[str] = ...
80
80
  ) -> None:
81
81
  self.metadata: Dict[str, Any]
82
82
 
83
83
  def shape_for(
84
- self, shape_name: str, member_traits: Optional[Dict[str, Any]] = ...
84
+ self, shape_name: str, member_traits: Optional[Mapping[str, Any]] = ...
85
85
  ) -> Shape: ...
86
86
  def shape_for_error_code(self, error_code: int) -> Shape: ...
87
87
  def resolve_shape_ref(self, shape_ref: str) -> Shape: ...
@@ -120,7 +120,7 @@ class ServiceModel:
120
120
  class OperationModel:
121
121
  def __init__(
122
122
  self,
123
- operation_model: Dict[str, Any],
123
+ operation_model: Mapping[str, Any],
124
124
  service_model: ServiceModel,
125
125
  name: Optional[str] = None,
126
126
  ) -> None:
@@ -178,17 +178,17 @@ class OperationModel:
178
178
 
179
179
  class ShapeResolver:
180
180
  SHAPE_CLASSES: Dict[str, Shape]
181
- def __init__(self, shape_map: Dict[str, Shape]) -> None: ...
181
+ def __init__(self, shape_map: Mapping[str, Shape]) -> None: ...
182
182
  def get_shape_by_name(
183
- self, shape_name: str, member_traits: Optional[Dict[str, Any]] = ...
183
+ self, shape_name: str, member_traits: Optional[Mapping[str, Any]] = ...
184
184
  ) -> Shape: ...
185
- def resolve_shape_ref(self, shape_ref: Dict[str, Any]) -> Shape: ...
185
+ def resolve_shape_ref(self, shape_ref: Mapping[str, Any]) -> Shape: ...
186
186
 
187
187
  class UnresolvableShapeMap:
188
188
  def get_shape_by_name(
189
- self, shape_name: str, member_traits: Optional[Dict[str, Any]] = ...
189
+ self, shape_name: str, member_traits: Optional[Mapping[str, Any]] = ...
190
190
  ) -> Shape: ...
191
- def resolve_shape_ref(self, shape_ref: Dict[str, Any]) -> Shape: ...
191
+ def resolve_shape_ref(self, shape_ref: Mapping[str, Any]) -> Shape: ...
192
192
 
193
193
  class DenormalizedStructureBuilder:
194
194
  SCALAR_TYPES: Tuple[str, ...]
@@ -197,7 +197,7 @@ class DenormalizedStructureBuilder:
197
197
  self.name: str
198
198
  self.members: Dict[str, Any]
199
199
 
200
- def with_members(self: _R, members: Dict[str, Any]) -> _R: ...
200
+ def with_members(self: _R, members: Mapping[str, Any]) -> _R: ...
201
201
  def build_model(self) -> StructureShape: ...
202
202
 
203
203
  class ShapeNameGenerator:
@@ -65,8 +65,8 @@ class EndpointResolverBuiltins(Enum):
65
65
  class EndpointRulesetResolver:
66
66
  def __init__(
67
67
  self,
68
- endpoint_ruleset_data: Dict[str, Any],
69
- partition_data: Dict[str, Any],
68
+ endpoint_ruleset_data: Mapping[str, Any],
69
+ partition_data: Mapping[str, Any],
70
70
  service_model: ServiceModel,
71
71
  builtins: EndpointResolverBuiltins,
72
72
  client_context: Any,
@@ -1,7 +1,7 @@
1
1
  import sys
2
2
  from collections.abc import MutableMapping
3
3
  from logging import Logger
4
- from typing import IO, Any, Dict, Iterator, List, Optional, Tuple, Union
4
+ from typing import IO, Any, Dict, Iterator, List, Mapping, Optional, Tuple, Union
5
5
 
6
6
  from botocore import UNSIGNED as UNSIGNED
7
7
  from botocore import handlers as handlers
@@ -152,7 +152,7 @@ class ComponentLocator:
152
152
  def lazy_register_component(self, name: str, no_arg_factory: Any) -> None: ...
153
153
 
154
154
  class SessionVarDict(MutableMapping[str, Any]):
155
- def __init__(self, session: Session, session_vars: Dict[str, Any]) -> None: ...
155
+ def __init__(self, session: Session, session_vars: Mapping[str, Any]) -> None: ...
156
156
  def __getitem__(self, key: str) -> Any: ...
157
157
  def __setitem__(self, key: str, value: Any) -> None: ...
158
158
  def __delitem__(self, key: str) -> None: ...
botocore-stubs/utils.pyi CHANGED
@@ -126,11 +126,13 @@ class IMDSRegionProvider:
126
126
  class InstanceMetadataRegionFetcher(IMDSFetcher):
127
127
  def retrieve_region(self) -> Optional[str]: ...
128
128
 
129
- def merge_dicts(dict1: Dict[str, Any], dict2: Dict[str, Any], append_lists: bool = ...) -> None: ...
130
- def lowercase_dict(original: Dict[str, Any]) -> Dict[str, Any]: ...
129
+ def merge_dicts(
130
+ dict1: Mapping[str, Any], dict2: Mapping[str, Any], append_lists: bool = ...
131
+ ) -> None: ...
132
+ def lowercase_dict(original: Mapping[str, Any]) -> Dict[str, Any]: ...
131
133
  def parse_key_val_file(filename: str, _open: Callable[..., Any] = ...) -> Dict[str, str]: ...
132
134
  def parse_key_val_file_contents(contents: str) -> Dict[str, str]: ...
133
- def percent_encode_sequence(mapping: Dict[str, Any], safe: Iterable[str] = ...) -> Any: ...
135
+ def percent_encode_sequence(mapping: Mapping[str, Any], safe: Iterable[str] = ...) -> Any: ...
134
136
  def percent_encode(input_str: str, safe: Iterable[str] = ...) -> Any: ...
135
137
  def parse_timestamp(value: str) -> datetime.datetime: ...
136
138
  def parse_to_aware_datetime(value: str) -> datetime.datetime: ...
@@ -188,10 +190,10 @@ class S3ExpressIdentityResolver:
188
190
  ) -> None: ...
189
191
  def register(self, event_emitter: Optional[BaseEventHooks] = ...) -> None: ...
190
192
  def inject_signing_cache_key(
191
- self, params: Dict[str, Any], context: Dict[str, Any], **kwargs: Any
193
+ self, params: Mapping[str, Any], context: Mapping[str, Any], **kwargs: Any
192
194
  ) -> None: ...
193
195
  def apply_signing_cache_key(
194
- self, params: Dict[str, Any], context: Dict[str, Any], **kwargs: Any
196
+ self, params: Mapping[str, Any], context: Mapping[str, Any], **kwargs: Any
195
197
  ) -> None: ...
196
198
  def resolve_s3express_identity(
197
199
  self,
@@ -208,7 +210,7 @@ class S3RegionRedirectorv2:
208
210
  def __init__(self, endpoint_bridge: Any, client: Any, cache: Optional[Any] = ...) -> None: ...
209
211
  def register(self, event_emitter: Optional[BaseEventHooks] = ...) -> None: ...
210
212
  def redirect_from_error(
211
- self, request_dict: Dict[str, Any], response: Response, operation: Any, **kwargs: Any
213
+ self, request_dict: Mapping[str, Any], response: Response, operation: Any, **kwargs: Any
212
214
  ) -> Any: ...
213
215
  def get_bucket_region(self, bucket: Any, response: Response) -> Any: ...
214
216
  def set_request_url(self, old_url: str, new_endpoint: str, **kwargs: Any) -> None: ...
@@ -219,7 +221,7 @@ class S3RegionRedirector:
219
221
  def __init__(self, endpoint_bridge: Any, client: Any, cache: Optional[Any] = ...) -> None: ...
220
222
  def register(self, event_emitter: Optional[BaseEventHooks] = ...) -> None: ...
221
223
  def redirect_from_error(
222
- self, request_dict: Dict[str, Any], response: Response, operation: Any, **kwargs: Any
224
+ self, request_dict: Mapping[str, Any], response: Response, operation: Any, **kwargs: Any
223
225
  ) -> Any: ...
224
226
  def get_bucket_region(self, bucket: Any, response: Response) -> Any: ...
225
227
  def set_request_url(self, params: Any, context: Any, **kwargs: Any) -> None: ...
@@ -250,7 +252,7 @@ class S3EndpointSetter:
250
252
  def register(self, event_emitter: BaseEventHooks) -> None: ...
251
253
  def set_endpoint(self, request: Any, **kwargs: Any) -> None: ...
252
254
  def update_endpoint_to_s3_object_lambda(
253
- self, params: Dict[str, Any], context: Any, **kwargs: Any
255
+ self, params: Mapping[str, Any], context: Any, **kwargs: Any
254
256
  ) -> None: ...
255
257
  def set_signer(self, context: Any, **kwargs: Any) -> str: ...
256
258
 
@@ -311,10 +313,10 @@ class EventbridgeSignerSetter:
311
313
  ) -> None: ...
312
314
  def register(self, event_emitter: BaseEventHooks) -> None: ...
313
315
  def set_endpoint_url(
314
- self, params: Dict[str, Any], context: Dict[str, Any], **kwargs: Any
316
+ self, params: Mapping[str, Any], context: Mapping[str, Any], **kwargs: Any
315
317
  ) -> None: ...
316
318
  def check_for_global_endpoint(
317
- self, params: Dict[str, Any], context: Dict[str, Any], **kwargs: Any
319
+ self, params: Mapping[str, Any], context: Mapping[str, Any], **kwargs: Any
318
320
  ) -> None: ...
319
321
 
320
322
  def is_s3_accelerate_url(url: Optional[str]) -> bool: ...
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, Iterable
1
+ from typing import Any, Iterable, Mapping
2
2
 
3
3
  from botocore.exceptions import ParamValidationError as ParamValidationError
4
4
  from botocore.model import OperationModel, Shape
@@ -6,7 +6,7 @@ from botocore.serialize import Serializer
6
6
  from botocore.utils import is_json_value_header as is_json_value_header
7
7
  from botocore.utils import parse_to_aware_datetime as parse_to_aware_datetime
8
8
 
9
- def validate_parameters(params: Dict[str, Any], shape: Shape) -> None: ...
9
+ def validate_parameters(params: Mapping[str, Any], shape: Shape) -> None: ...
10
10
  def type_check(valid_types: Iterable[Any]) -> Any: ...
11
11
  def range_check(
12
12
  name: str, value: Any, shape: Shape, error_type: Any, errors: "ValidationErrors"
@@ -19,7 +19,7 @@ class ValidationErrors:
19
19
  def report(self, name: str, reason: str, **kwargs: Any) -> None: ...
20
20
 
21
21
  class ParamValidator:
22
- def validate(self, params: Dict[str, Any], shape: Shape) -> Any: ...
22
+ def validate(self, params: Mapping[str, Any], shape: Shape) -> Any: ...
23
23
 
24
24
  class ParamValidationDecorator:
25
25
  def __init__(self, param_validator: ParamValidator, serializer: Serializer) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: botocore-stubs
3
- Version: 1.33.7
3
+ Version: 1.33.8
4
4
  Summary: Type annotations and code completion for botocore
5
5
  Home-page: https://youtype.github.io/mypy_boto3_builder/
6
6
  License: MIT
@@ -1,34 +1,34 @@
1
- botocore-stubs/__init__.pyi,sha256=02lWwJ7oNsSPezJ9yrodyYCqTsOQxaYEgMXG5hgHWoY,580
2
- botocore-stubs/args.pyi,sha256=M00DinJfUz8esrwFq4cLnardTUCAz0EZdYH4sT4lmxQ,2899
1
+ botocore-stubs/__init__.pyi,sha256=KwFA19P5TNiNKq_nQjiqDz4-umtoaug7PNWY3VjVY8Y,586
2
+ botocore-stubs/args.pyi,sha256=e3cUgaHGN-DssT2R0--Xa9jaF2y2z9JSTClRpHPy6eQ,2923
3
3
  botocore-stubs/auth.pyi,sha256=awtpcETSTucIPYVI61eKSvE-dDVqWbPRPVLkq9at1c4,5122
4
- botocore-stubs/awsrequest.pyi,sha256=WYGod9z0AcKHx749EAjAxBoghTh3Nzf6hbW_5TyFcvY,3941
4
+ botocore-stubs/awsrequest.pyi,sha256=S97jiNSn9oUOEGTw2gXWx34KAtoGvKUuWkZ3DP3e2Q4,4063
5
5
  botocore-stubs/client.pyi,sha256=3P3hf2fTRtjYAljbf1sLlCfcaVvLsOa9S9Y03Kj0QHk,6111
6
- botocore-stubs/compat.pyi,sha256=ELtYAA1O7Iqea0hGJ488yFunLvivKVNVZqdHWTYhf5Q,2291
7
- botocore-stubs/compress.pyi,sha256=tnPahOCTYkLaAF7apfr37DCFioe5tnCzCh6y2HMzGKM,535
8
- botocore-stubs/config.pyi,sha256=Qk90qygef5XQsnxY619dU97soQhaRpv-wMbyPRnTwro,2544
6
+ botocore-stubs/compat.pyi,sha256=qRCq9VnamOydVPweV89OEBHUSWvWAb1RTZo3zkeAJFI,2291
7
+ botocore-stubs/compress.pyi,sha256=3xny8gRljGx8E1acLFdfi_rsfwUgxCI8aMat87Kcwp0,547
8
+ botocore-stubs/config.pyi,sha256=iR2yySZX_F9KxY0cM5DjhcJ4GwtSTtioezi_im9CleA,2556
9
9
  botocore-stubs/configloader.pyi,sha256=gR09Hg5pnfeGAmxxrh-0qvvmCiaQhzOSqv9C3juEMzc,274
10
- botocore-stubs/configprovider.pyi,sha256=kLPwWsqkgr8p6apySoQHP7RN3eGup1PgM5cCuNJ-QGc,3851
11
- botocore-stubs/credentials.pyi,sha256=-Kv2jhBjCUb8g62CgfaTpkqX8ijY2lL_BhrIY1Ns6wo,11001
10
+ botocore-stubs/configprovider.pyi,sha256=LBy5G_g8wCseS3R1FyAUX4MNGbE_XxipAwWp8HCMVP0,3860
11
+ botocore-stubs/credentials.pyi,sha256=S9NZxG5X0Wbd8uB1AP-KsQ4mMtUditSpOV6fX_HjLvY,11016
12
12
  botocore-stubs/crt/__init__.pyi,sha256=ld7WjrC97qu1EHKIt8Ywq6yEQmUd43L474mBVDMtzZk,74
13
13
  botocore-stubs/crt/auth.pyi,sha256=mH5XkYrECyl4Q2NStD1ISv9WFUTW0o4AA-d0Zq_GgWw,2126
14
14
  botocore-stubs/discovery.pyi,sha256=HZjV4iSAWjcPlL5_d8f4i8RtT-IJ4-v8exkRwrK8Ops,2234
15
15
  botocore-stubs/endpoint.pyi,sha256=-E2qdSyqDOWaO7ltd6FntUw-2pqNbhzi-wXeuZXeEtY,2234
16
- botocore-stubs/endpoint_provider.pyi,sha256=B0qrbQx5gNeDTU_NKKOSC8Ymsh1qnq2uOUi9YVwI0hk,6093
16
+ botocore-stubs/endpoint_provider.pyi,sha256=P4un3sBKwJ3EjSC4y4p5kgfdSZfuPF_1cuEvPjm26io,6237
17
17
  botocore-stubs/errorfactory.pyi,sha256=hm3sTAznyj_iY5xy7_KCxPzZV3GnWUacqfDctvHgYDs,708
18
18
  botocore-stubs/eventstream.pyi,sha256=hg0tOkbNBOXRBUP1sqLQExhPF7CX628c6LYtMrUjyAY,3464
19
19
  botocore-stubs/exceptions.pyi,sha256=38sjwWBF62A2Lg7lL6hL6YoE-stZMHq7Wttv3BudZDQ,21599
20
20
  botocore-stubs/handlers.pyi,sha256=hGfXkddENZhuML1sA9x5D1HLmGn3ovK0lbBH_VE9XHw,6869
21
21
  botocore-stubs/history.pyi,sha256=NMhK1CDY1wna-0byOqZzaAWhhuaGw66YDv4Lz_FvvLE,570
22
22
  botocore-stubs/hooks.pyi,sha256=tYUWY1bJQ9PI-VWYQu9FiMAAuNuOFBlHoGBinkmWjkk,2841
23
- botocore-stubs/httpchecksum.pyi,sha256=U8Om035esozuTe3B4hq6woPKg1-dERb8UZApaVNOK4g,2726
24
- botocore-stubs/httpsession.pyi,sha256=7_uV5y28tyHfjBJYgpKPYzoIGaHgied28nZjS4v4VAs,2322
23
+ botocore-stubs/httpchecksum.pyi,sha256=QrUqoQQqkI7HNHX-F74bW6bryNvSOaQLza3H0oYPc9E,2741
24
+ botocore-stubs/httpsession.pyi,sha256=9FqhZ_pulehZj9qjC3evAEM1wSHHSGVPS12bEhcmicE,2343
25
25
  botocore-stubs/loaders.pyi,sha256=-Rwf3vEVjSsbhSr9rLa9ngW4Cz2Afe78c5dLw4bvJfE,2059
26
- botocore-stubs/model.pyi,sha256=RG9WoDKQfJhvegJAFM5ULdc_vrw5iTBuw-MAJWXvdL0,6409
26
+ botocore-stubs/model.pyi,sha256=b7vR8f4jeb_Orwp5b8c_ebuxouPvpZvLKHQY6Jhp6-g,6448
27
27
  botocore-stubs/monitoring.pyi,sha256=7jALyfugijWXlL1t3ZRgGa2VQa03jTbjLOq6-g7mDhc,2358
28
28
  botocore-stubs/paginate.pyi,sha256=znpnVIL2p--d-EPB4ER6W4Rj3Pj84U1fq77gJ9lYB8s,1743
29
29
  botocore-stubs/parsers.pyi,sha256=jKaNPfMOsWAkV7G1uu2VbVO5CKi-Tp45E1lTJVCy4V0,2099
30
30
  botocore-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- botocore-stubs/regions.pyi,sha256=ExwnysAu-BtXu6lAjAs07Zk6G3EVUop_dtvAGD1OgoU,3246
31
+ botocore-stubs/regions.pyi,sha256=28srq_27BRLGYRv9umUIneO-xLvTBNljrYQgKljTqB4,3252
32
32
  botocore-stubs/response.pyi,sha256=3uQrMuhGVx55NfWtRncKjOWGRWHcPVVTM-NhRJ-IOPo,1081
33
33
  botocore-stubs/retries/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  botocore-stubs/retries/adaptive.pyi,sha256=EK9O4V-qQh8tmziLDfCyilQnHLZhZSykkON0yPRUPQs,854
@@ -40,16 +40,16 @@ botocore-stubs/retries/standard.pyi,sha256=1qhpO_XbUHa8zf05nTJP-uAVfxIVakFX_W624
40
40
  botocore-stubs/retries/throttling.pyi,sha256=9CjqK2oro8ddPB-vW0_X-LK7O9gosJjY66hoFdJRIwo,485
41
41
  botocore-stubs/retryhandler.pyi,sha256=ntaX5StOw10g5oiCetNkE4F8d0DYlMPfziOyAEbm9lY,2522
42
42
  botocore-stubs/serialize.pyi,sha256=4TxStSxTM8c5hYRt9RCnf0Skpt4gfOI44jUdhJKHmU0,1759
43
- botocore-stubs/session.pyi,sha256=2l5yI4mjAfVQL4YxJ4M8GtXjarWErtHsArpTtQf1Bqk,7218
43
+ botocore-stubs/session.pyi,sha256=SUxnB_ZX9vLiFgdqu3id3EI8gX3jgosAuDmwoLbKqDs,7230
44
44
  botocore-stubs/signers.pyi,sha256=aiHhQsTgoCoT1GGHXROB6jktUs4MSRnv-MVx1Ad5WVM,3533
45
45
  botocore-stubs/stub.pyi,sha256=dQwDokOAEb2hLCQPyQ5Bq_BD0QFyyyRCKAl73Kbshso,1934
46
46
  botocore-stubs/tokens.pyi,sha256=dnv93uN3lIyyWkmTbvW05R0T9Tb40pYXlKyro-v8z64,1198
47
47
  botocore-stubs/translate.pyi,sha256=0VD5IQFJ-BHD8VIN9A-VdnzDCtMR82DqZal_xSAPjX4,310
48
48
  botocore-stubs/useragent.pyi,sha256=todcxeNhOXoYwx7lhVDCWXJxAx-c4NyM0k9_zItFzOI,1185
49
- botocore-stubs/utils.pyi,sha256=32-LxOwEs277HDn_522EwtJhN3TpQdx0Ta-Ao-_EJic,13898
50
- botocore-stubs/validate.pyi,sha256=kt7RBRqKNonfZg5XRu1C38KpV1qyLXKdrpjO9A5EF1E,1163
49
+ botocore-stubs/utils.pyi,sha256=6lVJ1ksfPDjuc1qQeAAeLX_B-9twXR9cCgHTbMEe2to,13949
50
+ botocore-stubs/validate.pyi,sha256=HTvAiEdyqyNXhyuDEHUhtQsPOOHACvbA-m7sUE3Ef4Q,1172
51
51
  botocore-stubs/waiter.pyi,sha256=-imMz_PRyCWtVzwp8wBpP2T1gT6XbWGmLhQ4oiUFtYA,1591
52
- botocore_stubs-1.33.7.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
53
- botocore_stubs-1.33.7.dist-info/METADATA,sha256=GumOUvsK3PireECoAkU-bI0hGVOOAeaVJ65KY23Io_A,3406
54
- botocore_stubs-1.33.7.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
55
- botocore_stubs-1.33.7.dist-info/RECORD,,
52
+ botocore_stubs-1.33.8.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
53
+ botocore_stubs-1.33.8.dist-info/METADATA,sha256=M9LMqf9JjpIlutkAvL4xLGgVNb0p2xeyOVbqIFQE8TY,3406
54
+ botocore_stubs-1.33.8.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
55
+ botocore_stubs-1.33.8.dist-info/RECORD,,