botocore-stubs 1.35.92__py3-none-any.whl → 1.35.94__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.

@@ -253,7 +253,7 @@ class AssumeRoleProvider(CredentialProvider):
253
253
  CANONICAL_NAME: None = ...
254
254
  ROLE_CONFIG_VAR: str = ...
255
255
  WEB_IDENTITY_TOKE_FILE_VAR: str = ...
256
- EXPIRY_WINDOW_SECONDS: Any = ...
256
+ EXPIRY_WINDOW_SECONDS: int = ...
257
257
  def __init__(
258
258
  self,
259
259
  load_config: Callable[[], Mapping[str, Any]],
botocore-stubs/model.pyi CHANGED
@@ -130,7 +130,7 @@ class OperationModel:
130
130
  self,
131
131
  operation_model: Mapping[str, Any],
132
132
  service_model: ServiceModel,
133
- name: str | None = None,
133
+ name: str | None = ...,
134
134
  ) -> None:
135
135
  self.metadata: dict[str, Any]
136
136
  self.http: dict[str, Any]
@@ -50,7 +50,7 @@ class PageIterator(Generic[_R]):
50
50
  @property
51
51
  def non_aggregate_part(self) -> dict[str, Any]: ...
52
52
  def __iter__(self) -> Iterator[_R]: ...
53
- def search(self, expression: str) -> Iterator[_R]: ...
53
+ def search(self, expression: str) -> Iterator[Any]: ...
54
54
  def result_key_iters(self) -> list[ResultKeyIterator[_R]]: ...
55
55
  def build_full_result(self) -> dict[str, Any]: ...
56
56
 
@@ -4,6 +4,7 @@ Type annotations for botocore.regions module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
+ from collections.abc import Iterable
7
8
  from enum import Enum
8
9
  from logging import Logger
9
10
  from typing import Any, Mapping
@@ -40,10 +41,10 @@ class EndpointResolver(BaseEndpointResolver):
40
41
  service_name: str,
41
42
  partition_name: str = ...,
42
43
  allow_non_regional: bool = ...,
43
- endpoint_variant_tags: Any = ...,
44
+ endpoint_variant_tags: Iterable[str] | None = ...,
44
45
  ) -> list[str]: ...
45
46
  def get_partition_dns_suffix(
46
- self, partition_name: str, endpoint_variant_tags: Any = ...
47
+ self, partition_name: str, endpoint_variant_tags: Iterable[str] | None = ...
47
48
  ) -> str: ...
48
49
  def construct_endpoint( # type: ignore [override]
49
50
  self,
@@ -4,9 +4,9 @@ Type annotations for botocore.session module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
- from collections.abc import MutableMapping
7
+ from collections.abc import Callable, MutableMapping
8
8
  from logging import Logger
9
- from typing import IO, Any, Iterator, Mapping, Protocol
9
+ from typing import IO, Any, Iterator, Mapping, Protocol, Sequence
10
10
 
11
11
  from botocore.client import BaseClient, Config
12
12
  from botocore.compat import HAS_CRT as HAS_CRT
@@ -109,10 +109,10 @@ class Session:
109
109
  unique_id_uses_count: bool = ...,
110
110
  ) -> None: ...
111
111
  def emit(self, event_name: str, **kwargs: Any) -> Any: ...
112
- def emit_first_non_none_response(self, event_name: Any, **kwargs: Any) -> Any: ...
113
- def get_component(self, name: Any) -> Any: ...
114
- def register_component(self, name: Any, component: Any) -> None: ...
115
- def lazy_register_component(self, name: Any, component: Any) -> None: ...
112
+ def emit_first_non_none_response(self, event_name: str, **kwargs: Any) -> Any: ...
113
+ def get_component(self, name: str) -> Any: ...
114
+ def register_component(self, name: str, component: Any) -> None: ...
115
+ def lazy_register_component(self, name: str, component: Any) -> None: ...
116
116
  def create_client(
117
117
  self,
118
118
  service_name: str,
@@ -139,7 +139,7 @@ class ComponentLocator:
139
139
  def __init__(self) -> None: ...
140
140
  def get_component(self, name: str) -> Any: ...
141
141
  def register_component(self, name: str, component: Any) -> None: ...
142
- def lazy_register_component(self, name: str, no_arg_factory: Any) -> None: ...
142
+ def lazy_register_component(self, name: str, no_arg_factory: Callable[[], Any]) -> None: ...
143
143
 
144
144
  class SessionVarDict(MutableMapping[str, Any]):
145
145
  def __init__(self, session: Session, session_vars: Mapping[str, Any]) -> None: ...
@@ -150,7 +150,9 @@ class SessionVarDict(MutableMapping[str, Any]):
150
150
  def __len__(self) -> int: ...
151
151
 
152
152
  class SubsetChainConfigFactory:
153
- def __init__(self, session: Session, methods: Any, environ: Any | None = ...) -> None: ...
153
+ def __init__(
154
+ self, session: Session, methods: Sequence[str], environ: Any | None = ...
155
+ ) -> None: ...
154
156
  def create_config_chain(
155
157
  self,
156
158
  instance_name: Any | None = ...,
@@ -4,14 +4,15 @@ Type annotations for botocore.translate module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
+ from collections.abc import Mapping
7
8
  from typing import Any
8
9
 
9
10
  from botocore.utils import merge_dicts as merge_dicts
10
11
 
11
12
  def build_retry_config(
12
13
  endpoint_prefix: str,
13
- retry_model: Any,
14
- definitions: Any,
15
- client_retry_config: Any | None = ...,
14
+ retry_model: Mapping[str, Any],
15
+ definitions: Mapping[str, Any],
16
+ client_retry_config: Mapping[str, Any] | None = ...,
16
17
  ) -> Any: ...
17
- def resolve_references(config: Any, definitions: Any) -> None: ...
18
+ def resolve_references(config: Mapping[str, Any], definitions: Mapping[str, Any]) -> None: ...
botocore-stubs/utils.pyi CHANGED
@@ -114,7 +114,7 @@ class IMDSFetcher:
114
114
  def get_base_url(self) -> str: ...
115
115
 
116
116
  class InstanceMetadataFetcher(IMDSFetcher):
117
- def retrieve_iam_role_credentials(self) -> Any: ...
117
+ def retrieve_iam_role_credentials(self) -> dict[str, Any]: ...
118
118
 
119
119
  class IMDSRegionProvider:
120
120
  def __init__(
@@ -158,20 +158,20 @@ def validate_region_name(region_name: str) -> None: ...
158
158
  def check_dns_name(bucket_name: str) -> bool: ...
159
159
  def fix_s3_host(
160
160
  request: Any,
161
- signature_version: Any,
162
- region_name: Any,
161
+ signature_version: str,
162
+ region_name: str,
163
163
  default_endpoint_url: str | None = ...,
164
164
  **kwargs: Any,
165
165
  ) -> None: ...
166
166
  def switch_to_virtual_host_style(
167
- request: Any, signature_version: Any, default_endpoint_url: str | None = ..., **kwargs: Any
167
+ request: Any, signature_version: str, default_endpoint_url: str | None = ..., **kwargs: Any
168
168
  ) -> None: ...
169
169
  def instance_cache(func: Any) -> Any: ...
170
170
  def lru_cache_weakref(*cache_args: Any, **cache_kwargs: Any) -> Any: ...
171
- def switch_host_s3_accelerate(request: Any, operation_name: Any, **kwargs: Any) -> None: ...
172
- def switch_host_with_param(request: Any, param_name: Any) -> None: ...
173
- def deep_merge(base: Any, extra: Any) -> None: ...
174
- def hyphenize_service_id(service_id: Any) -> Any: ...
171
+ def switch_host_s3_accelerate(request: Any, operation_name: str, **kwargs: Any) -> None: ...
172
+ def switch_host_with_param(request: Any, param_name: str) -> None: ...
173
+ def deep_merge(base: dict[str, Any], extra: Mapping[str, Any]) -> None: ...
174
+ def hyphenize_service_id(service_id: str) -> Any: ...
175
175
 
176
176
  class IdentityCache:
177
177
  METHOD: str = ...
@@ -219,8 +219,12 @@ class S3RegionRedirectorv2:
219
219
  ) -> Any: ...
220
220
  def get_bucket_region(self, bucket: Any, response: Response) -> Any: ...
221
221
  def set_request_url(self, old_url: str, new_endpoint: str, **kwargs: Any) -> None: ...
222
- def redirect_from_cache(self, builtins: Any, params: Any, **kwargs: Any) -> None: ...
223
- def annotate_request_context(self, params: Any, context: Any, **kwargs: Any) -> None: ...
222
+ def redirect_from_cache(
223
+ self, builtins: dict[str, Any], params: Mapping[str, Any], **kwargs: Any
224
+ ) -> None: ...
225
+ def annotate_request_context(
226
+ self, params: Mapping[str, Any], context: Any, **kwargs: Any
227
+ ) -> None: ...
224
228
 
225
229
  class S3RegionRedirector:
226
230
  def __init__(
@@ -235,8 +239,10 @@ class S3RegionRedirector:
235
239
  **kwargs: Any,
236
240
  ) -> Any: ...
237
241
  def get_bucket_region(self, bucket: Any, response: Response) -> Any: ...
238
- def set_request_url(self, params: Any, context: Any, **kwargs: Any) -> None: ...
239
- def redirect_from_cache(self, params: Any, context: Any, **kwargs: Any) -> None: ...
242
+ def set_request_url(self, params: Any, context: Mapping[str, Any], **kwargs: Any) -> None: ...
243
+ def redirect_from_cache(
244
+ self, params: Any, context: Mapping[str, Any], **kwargs: Any
245
+ ) -> None: ...
240
246
 
241
247
  class InvalidArnException(ValueError): ...
242
248
 
@@ -248,7 +254,9 @@ class ArnParser:
248
254
  class S3ArnParamHandler:
249
255
  def __init__(self, arn_parser: Any | None = ...) -> None: ...
250
256
  def register(self, event_emitter: BaseEventHooks) -> None: ...
251
- def handle_arn(self, params: Any, model: Any, context: Any, **kwargs: Any) -> None: ...
257
+ def handle_arn(
258
+ self, params: Mapping[str, Any], model: Any, context: Mapping[str, Any], **kwargs: Any
259
+ ) -> None: ...
252
260
 
253
261
  class S3EndpointSetter:
254
262
  def __init__(
@@ -263,9 +271,9 @@ class S3EndpointSetter:
263
271
  def register(self, event_emitter: BaseEventHooks) -> None: ...
264
272
  def set_endpoint(self, request: Any, **kwargs: Any) -> None: ...
265
273
  def update_endpoint_to_s3_object_lambda(
266
- self, params: Mapping[str, Any], context: Any, **kwargs: Any
274
+ self, params: Mapping[str, Any], context: Mapping[str, Any], **kwargs: Any
267
275
  ) -> None: ...
268
- def set_signer(self, context: Any, **kwargs: Any) -> str: ...
276
+ def set_signer(self, context: Mapping[str, Any], **kwargs: Any) -> str: ...
269
277
 
270
278
  class S3ControlEndpointSetter:
271
279
  def __init__(
@@ -283,7 +291,9 @@ class S3ControlEndpointSetter:
283
291
  class S3ControlArnParamHandler:
284
292
  def __init__(self, arn_parser: Any | None = ...) -> None: ...
285
293
  def register(self, event_emitter: BaseEventHooks) -> None: ...
286
- def handle_arn(self, params: Any, model: Any, context: Any, **kwargs: Any) -> None: ...
294
+ def handle_arn(
295
+ self, params: Mapping[str, Any], model: Any, context: Mapping[str, Any], **kwargs: Any
296
+ ) -> None: ...
287
297
 
288
298
  class S3ControlArnParamHandlerv2(S3ControlArnParamHandler): ...
289
299
 
@@ -319,8 +329,8 @@ class EventbridgeSignerSetter:
319
329
  def __init__(
320
330
  self,
321
331
  endpoint_resolver: BaseEndpointResolver,
322
- region: str | None = None,
323
- endpoint_url: str | None = None,
332
+ region: str | None = ...,
333
+ endpoint_url: str | None = ...,
324
334
  ) -> None: ...
325
335
  def register(self, event_emitter: BaseEventHooks) -> None: ...
326
336
  def set_endpoint_url(
@@ -334,7 +344,9 @@ def is_s3_accelerate_url(url: str | None) -> bool: ...
334
344
 
335
345
  class JSONFileCache:
336
346
  CACHE_DIR: Any = ...
337
- def __init__(self, working_dir: Any = ..., dumps_func: Any | None = ...) -> None: ...
347
+ def __init__(
348
+ self, working_dir: Any = ..., dumps_func: Callable[[Any], str] | None = ...
349
+ ) -> None: ...
338
350
  def __contains__(self, cache_key: str) -> bool: ...
339
351
  def __getitem__(self, cache_key: str) -> Any: ...
340
352
  def __delitem__(self, cache_key: str) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: botocore-stubs
3
- Version: 1.35.92
3
+ Version: 1.35.94
4
4
  Summary: Type annotations and code completion for botocore
5
5
  Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
6
  License: MIT License
@@ -8,7 +8,7 @@ botocore-stubs/compress.pyi,sha256=WnJqbpiKOeIX1GKbu-VzsB_ViGmshAR0l6HSxPHyjNY,6
8
8
  botocore-stubs/config.pyi,sha256=jF2oM6ce-E2Tcogu1wtDeG47KvHQq_C2lZeXVVOYSJQ,2392
9
9
  botocore-stubs/configloader.pyi,sha256=sIohC4ttDc1PO79oxjoN3h4mZ5idBb4JaCL_K8Ug3so,420
10
10
  botocore-stubs/configprovider.pyi,sha256=7Sf-JpAHwlSW-uxV16HuA1GVk_6zGR4vAJujc3inYf0,4098
11
- botocore-stubs/credentials.pyi,sha256=Bcw4R7C9m9y9-QPeQ8nofdCewysHxuygjiChE6sR6UE,11897
11
+ botocore-stubs/credentials.pyi,sha256=q6Cb5fx2tBU2pRybZG8yOQ_tvnnUzLib86i_v0_IbAM,11897
12
12
  botocore-stubs/discovery.pyi,sha256=Ub4VvxNHAWlR00wk-xOpM7kE-22-sQwtUfODNyh91-4,2599
13
13
  botocore-stubs/endpoint.pyi,sha256=a5BcrVSnVsO_3FEsarvu7TlzOFerwm-Kg0FJuQWv7Wc,2491
14
14
  botocore-stubs/endpoint_provider.pyi,sha256=YrTX7bz0CkftlWnOvq6jtogA07jXtMd5BTG46I1SfEI,6204
@@ -21,22 +21,22 @@ botocore-stubs/hooks.pyi,sha256=uoQSGw42m2j_v1G_wCUTkO43NsB0keWkOMI-88FxIPk,3050
21
21
  botocore-stubs/httpchecksum.pyi,sha256=kFiWpW8wsOdMuYMFq8jvXXgH-bVdxElemNEZfUi7CYE,2728
22
22
  botocore-stubs/httpsession.pyi,sha256=QaXu2NwCdlZcc5vPvzpZTyrQG_2SowD51Wizg2Ag_GY,2346
23
23
  botocore-stubs/loaders.pyi,sha256=FrvA9Vf5NJthc9A8JWYcKxHy5iL_H47CvhB19nOs6X0,2041
24
- botocore-stubs/model.pyi,sha256=008WqjhqvrG-w80Is5iGa4vS_ZqyU7wqOIzHF-aOR-w,6779
24
+ botocore-stubs/model.pyi,sha256=zoLLSDZhgY-4f30wrezFqE5eH8-qfYYr0MTafgTNGYM,6778
25
25
  botocore-stubs/monitoring.pyi,sha256=RBPAe0RXt_tllJQRbFKsqxOR3jjZNFrpITx4SNCTKSw,2893
26
- botocore-stubs/paginate.pyi,sha256=TxesgJ1J33gQSLT5DjskklxTIv9K_CYqrZfPuHnIwyk,2286
26
+ botocore-stubs/paginate.pyi,sha256=3J2Hz5gzxNa17VK3EqCnMq_vGUukk6394x8YtSzb_Ps,2287
27
27
  botocore-stubs/parsers.pyi,sha256=CGEoLBmCQ_JNS2B297EevHeqyg-gx3G9v1JLET6ESc0,2148
28
28
  botocore-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- botocore-stubs/regions.pyi,sha256=2iWL2JLLuzdmv1EjoPlX2sztD589ChEZTII7zK8fUag,3661
29
+ botocore-stubs/regions.pyi,sha256=ycpcJyCV_FRUpUUuuV69bNjvzoD1cp7fNklBfaDvjNY,3732
30
30
  botocore-stubs/response.pyi,sha256=vIKW4YrfSV8rMjAVmOZyaBejmLNEW4E6Ynz1Fvh5aY4,1094
31
31
  botocore-stubs/retryhandler.pyi,sha256=1IJY12bsnpsJZCWqohg3Nd7P75i2zilZyysgSMCB4P8,2573
32
32
  botocore-stubs/serialize.pyi,sha256=EJDKPeDaVPlydVdcMQ6MHJRCNvv5X2LCuo7HmqN-IRA,1799
33
- botocore-stubs/session.pyi,sha256=bkjIdBEV3Tylrul8y2fghw9g0RjR4_xD5n9rD5vTins,6817
33
+ botocore-stubs/session.pyi,sha256=7cEagjpcZitLahn1t_J9aJhsVMfdT5z6au83v5QSukg,6875
34
34
  botocore-stubs/signers.pyi,sha256=gmDq0KvpxVvAETiT9TSVPVgvAOUdiGakLiDQlwg2MQ0,4101
35
35
  botocore-stubs/stub.pyi,sha256=kaYgZ43jDoduFAcZ46tefbUySr8s3KAV7OgE9kNzJyo,1864
36
36
  botocore-stubs/tokens.pyi,sha256=cEh_-2PZtVcOAYy9bYM_E2slTugXE_je9P6pH1XsPHw,1255
37
- botocore-stubs/translate.pyi,sha256=M664glaClhHICCdWYLaphbyN2B3a5nsg7FkcNsuBHVI,385
37
+ botocore-stubs/translate.pyi,sha256=goxDZSZi9mSk37TzwGcwAK5Rzmezi7igx6iHSlT4f_M,491
38
38
  botocore-stubs/useragent.pyi,sha256=zdDuZjvjdw0acGoVg1lrSYYikKRdIa8cmDqTuEiN1sE,1245
39
- botocore-stubs/utils.pyi,sha256=l8lEp6IvVXEhpewU0DkqEN-XQqX1T5jbxavdv3lf_6I,13924
39
+ botocore-stubs/utils.pyi,sha256=Zw8iZNYcAhSRZlxTU8ncph6YFHB1EyuVk_yMCicst4s,14210
40
40
  botocore-stubs/validate.pyi,sha256=xLNlz6QQQZgjLSeY47HkxWnFMSo7wcqOMVZyzXM5ZGo,1257
41
41
  botocore-stubs/waiter.pyi,sha256=ao-XDuw3lfXpqBzEvRaErJyZJVPmBUlnLpZGjxcR8Oc,1660
42
42
  botocore-stubs/crt/__init__.pyi,sha256=tg3NAIDKMHZFojFp3rPkAQmYDQ5omzn0-40odlp1RYg,130
@@ -66,8 +66,8 @@ botocore-stubs/retries/quota.pyi,sha256=qirrw9ROff-26VDXHg8tFpv4tIU9O4njyCBVunfd
66
66
  botocore-stubs/retries/special.pyi,sha256=WvtxL3La8vMIzHF958Pa8zOeU-aNbW97Ru85UmjBLuE,530
67
67
  botocore-stubs/retries/standard.pyi,sha256=LRPCpvxu3HG6597g03Ef_yn6GYZ6hg5et3BsBIGola8,4451
68
68
  botocore-stubs/retries/throttling.pyi,sha256=7XppYXEMcIcSd94RacezLzxgm5QFzlkKNkxXPkRBDvc,582
69
- botocore_stubs-1.35.92.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
70
- botocore_stubs-1.35.92.dist-info/METADATA,sha256=D6OjJ3nSVWSg5JlAViQvJo0zSJSFbphU-4oIUXWmX0o,4605
71
- botocore_stubs-1.35.92.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
72
- botocore_stubs-1.35.92.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
73
- botocore_stubs-1.35.92.dist-info/RECORD,,
69
+ botocore_stubs-1.35.94.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
70
+ botocore_stubs-1.35.94.dist-info/METADATA,sha256=OiU_KdjNto40rFceVkJZuO1YagCuHVn81Lufb0Uoe-E,4605
71
+ botocore_stubs-1.35.94.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
72
+ botocore_stubs-1.35.94.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
73
+ botocore_stubs-1.35.94.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.7.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5