boto3-stubs 1.35.71__py3-none-any.whl → 1.35.72__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.
- boto3-stubs/__init__.pyi +42 -0
- boto3-stubs/compat.pyi +7 -2
- boto3-stubs/crt.pyi +10 -6
- boto3-stubs/docs/__init__.pyi +6 -0
- boto3-stubs/docs/action.pyi +7 -3
- boto3-stubs/docs/attr.pyi +6 -0
- boto3-stubs/docs/base.pyi +8 -2
- boto3-stubs/docs/client.pyi +6 -0
- boto3-stubs/docs/collection.pyi +6 -0
- boto3-stubs/docs/docstring.pyi +6 -0
- boto3-stubs/docs/method.pyi +14 -8
- boto3-stubs/docs/resource.pyi +6 -0
- boto3-stubs/docs/service.pyi +6 -2
- boto3-stubs/docs/subresource.pyi +6 -0
- boto3-stubs/docs/utils.pyi +10 -4
- boto3-stubs/docs/waiter.pyi +6 -0
- boto3-stubs/dynamodb/conditions.pyi +31 -38
- boto3-stubs/dynamodb/table.pyi +15 -9
- boto3-stubs/dynamodb/transform.pyi +18 -12
- boto3-stubs/dynamodb/types.pyi +22 -33
- boto3-stubs/ec2/createtags.pyi +9 -3
- boto3-stubs/ec2/deletetags.pyi +6 -0
- boto3-stubs/exceptions.pyi +6 -0
- boto3-stubs/resources/action.pyi +12 -6
- boto3-stubs/resources/base.pyi +16 -12
- boto3-stubs/resources/collection.pyi +10 -6
- boto3-stubs/resources/factory.pyi +9 -3
- boto3-stubs/resources/model.pyi +55 -53
- boto3-stubs/resources/params.pyi +12 -6
- boto3-stubs/resources/response.pyi +20 -14
- boto3-stubs/s3/constants.pyi +6 -0
- boto3-stubs/s3/inject.pyi +62 -56
- boto3-stubs/s3/transfer.pyi +23 -17
- boto3-stubs/session.pyi +45 -0
- boto3-stubs/utils.pyi +10 -4
- {boto3_stubs-1.35.71.dist-info → boto3_stubs-1.35.72.dist-info}/METADATA +54 -37
- boto3_stubs-1.35.72.dist-info/RECORD +45 -0
- boto3_stubs-1.35.71.dist-info/RECORD +0 -45
- {boto3_stubs-1.35.71.dist-info → boto3_stubs-1.35.72.dist-info}/LICENSE +0 -0
- {boto3_stubs-1.35.71.dist-info → boto3_stubs-1.35.72.dist-info}/WHEEL +0 -0
- {boto3_stubs-1.35.71.dist-info → boto3_stubs-1.35.72.dist-info}/top_level.txt +0 -0
boto3-stubs/s3/transfer.pyi
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.s3.transfer module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
1
7
|
import logging
|
2
8
|
from types import TracebackType
|
3
|
-
from typing import Any, Callable,
|
9
|
+
from typing import Any, Callable, Mapping, TypeVar
|
4
10
|
|
5
11
|
from botocore.client import BaseClient
|
6
12
|
from botocore.config import Config
|
@@ -19,12 +25,12 @@ logger: logging.Logger = ...
|
|
19
25
|
def create_transfer_manager(
|
20
26
|
client: BaseClient,
|
21
27
|
config: TransferConfig,
|
22
|
-
osutil:
|
28
|
+
osutil: OSUtils | None = ...,
|
23
29
|
) -> TransferManager: ...
|
24
30
|
def has_minimum_crt_version(minimum_version: str) -> bool: ...
|
25
31
|
|
26
32
|
class TransferConfig(S3TransferConfig):
|
27
|
-
ALIAS:
|
33
|
+
ALIAS: dict[str, str]
|
28
34
|
|
29
35
|
def __init__(
|
30
36
|
self,
|
@@ -35,7 +41,7 @@ class TransferConfig(S3TransferConfig):
|
|
35
41
|
max_io_queue: int = ...,
|
36
42
|
io_chunksize: int = ...,
|
37
43
|
use_threads: bool = ...,
|
38
|
-
max_bandwidth:
|
44
|
+
max_bandwidth: int | None = ...,
|
39
45
|
preferred_transfer_client: str = ...,
|
40
46
|
) -> None:
|
41
47
|
self.use_threads: bool
|
@@ -43,37 +49,37 @@ class TransferConfig(S3TransferConfig):
|
|
43
49
|
def __setattr__(self, name: str, value: int) -> None: ...
|
44
50
|
|
45
51
|
class S3Transfer:
|
46
|
-
ALLOWED_DOWNLOAD_ARGS:
|
47
|
-
ALLOWED_UPLOAD_ARGS:
|
52
|
+
ALLOWED_DOWNLOAD_ARGS: list[str]
|
53
|
+
ALLOWED_UPLOAD_ARGS: list[str]
|
48
54
|
def __init__(
|
49
55
|
self,
|
50
|
-
client:
|
51
|
-
config:
|
52
|
-
osutil:
|
53
|
-
manager:
|
56
|
+
client: BaseClient | None = ...,
|
57
|
+
config: Config | None = ...,
|
58
|
+
osutil: OSUtils | None = ...,
|
59
|
+
manager: TransferManager | None = ...,
|
54
60
|
) -> None: ...
|
55
61
|
def upload_file(
|
56
62
|
self,
|
57
63
|
filename: str,
|
58
64
|
bucket: str,
|
59
65
|
key: str,
|
60
|
-
callback:
|
61
|
-
extra_args:
|
66
|
+
callback: Callable[[int], Any] | None = ...,
|
67
|
+
extra_args: Mapping[str, Any] | None = ...,
|
62
68
|
) -> None: ...
|
63
69
|
def download_file(
|
64
70
|
self,
|
65
71
|
bucket: str,
|
66
72
|
key: str,
|
67
73
|
filename: str,
|
68
|
-
extra_args:
|
69
|
-
callback:
|
74
|
+
extra_args: Mapping[str, Any] | None = ...,
|
75
|
+
callback: Callable[[int], Any] | None = ...,
|
70
76
|
) -> None: ...
|
71
77
|
def __enter__(self: _R) -> _R: ...
|
72
78
|
def __exit__(
|
73
79
|
self,
|
74
|
-
exc_type:
|
75
|
-
exc_value:
|
76
|
-
tb:
|
80
|
+
exc_type: type[BaseException] | None,
|
81
|
+
exc_value: BaseException | None,
|
82
|
+
tb: TracebackType | None,
|
77
83
|
) -> None: ...
|
78
84
|
|
79
85
|
class ProgressCallbackInvoker(BaseSubscriber):
|
boto3-stubs/session.pyi
CHANGED
@@ -197,6 +197,7 @@ from mypy_boto3_inspector.client import InspectorClient
|
|
197
197
|
from mypy_boto3_inspector2.client import Inspector2Client
|
198
198
|
from mypy_boto3_inspector_scan.client import InspectorscanClient
|
199
199
|
from mypy_boto3_internetmonitor.client import CloudWatchInternetMonitorClient
|
200
|
+
from mypy_boto3_invoicing.client import InvoicingClient
|
200
201
|
from mypy_boto3_iot.client import IoTClient
|
201
202
|
from mypy_boto3_iot1click_devices.client import IoT1ClickDevicesServiceClient
|
202
203
|
from mypy_boto3_iot1click_projects.client import IoT1ClickProjectsClient
|
@@ -287,6 +288,7 @@ from mypy_boto3_neptune.client import NeptuneClient
|
|
287
288
|
from mypy_boto3_neptune_graph.client import NeptuneGraphClient
|
288
289
|
from mypy_boto3_neptunedata.client import NeptuneDataClient
|
289
290
|
from mypy_boto3_network_firewall.client import NetworkFirewallClient
|
291
|
+
from mypy_boto3_networkflowmonitor.client import NetworkFlowMonitorClient
|
290
292
|
from mypy_boto3_networkmanager.client import NetworkManagerClient
|
291
293
|
from mypy_boto3_networkmonitor.client import CloudWatchNetworkMonitorClient
|
292
294
|
from mypy_boto3_notifications.client import UserNotificationsClient
|
@@ -367,6 +369,7 @@ from mypy_boto3_scheduler.client import EventBridgeSchedulerClient
|
|
367
369
|
from mypy_boto3_schemas.client import SchemasClient
|
368
370
|
from mypy_boto3_sdb.client import SimpleDBClient
|
369
371
|
from mypy_boto3_secretsmanager.client import SecretsManagerClient
|
372
|
+
from mypy_boto3_security_ir.client import SecurityIncidentResponseClient
|
370
373
|
from mypy_boto3_securityhub.client import SecurityHubClient
|
371
374
|
from mypy_boto3_securitylake.client import SecurityLakeClient
|
372
375
|
from mypy_boto3_serverlessrepo.client import ServerlessApplicationRepositoryClient
|
@@ -2894,6 +2897,20 @@ class Session:
|
|
2894
2897
|
config: Optional[Config] = ...,
|
2895
2898
|
) -> CloudWatchInternetMonitorClient: ...
|
2896
2899
|
@overload
|
2900
|
+
def client(
|
2901
|
+
self,
|
2902
|
+
service_name: Literal["invoicing"],
|
2903
|
+
region_name: Optional[str] = ...,
|
2904
|
+
api_version: Optional[str] = ...,
|
2905
|
+
use_ssl: Optional[bool] = ...,
|
2906
|
+
verify: Union[bool, str, None] = ...,
|
2907
|
+
endpoint_url: Optional[str] = ...,
|
2908
|
+
aws_access_key_id: Optional[str] = ...,
|
2909
|
+
aws_secret_access_key: Optional[str] = ...,
|
2910
|
+
aws_session_token: Optional[str] = ...,
|
2911
|
+
config: Optional[Config] = ...,
|
2912
|
+
) -> InvoicingClient: ...
|
2913
|
+
@overload
|
2897
2914
|
def client(
|
2898
2915
|
self,
|
2899
2916
|
service_name: Literal["iot"],
|
@@ -4098,6 +4115,20 @@ class Session:
|
|
4098
4115
|
config: Optional[Config] = ...,
|
4099
4116
|
) -> NetworkFirewallClient: ...
|
4100
4117
|
@overload
|
4118
|
+
def client(
|
4119
|
+
self,
|
4120
|
+
service_name: Literal["networkflowmonitor"],
|
4121
|
+
region_name: Optional[str] = ...,
|
4122
|
+
api_version: Optional[str] = ...,
|
4123
|
+
use_ssl: Optional[bool] = ...,
|
4124
|
+
verify: Union[bool, str, None] = ...,
|
4125
|
+
endpoint_url: Optional[str] = ...,
|
4126
|
+
aws_access_key_id: Optional[str] = ...,
|
4127
|
+
aws_secret_access_key: Optional[str] = ...,
|
4128
|
+
aws_session_token: Optional[str] = ...,
|
4129
|
+
config: Optional[Config] = ...,
|
4130
|
+
) -> NetworkFlowMonitorClient: ...
|
4131
|
+
@overload
|
4101
4132
|
def client(
|
4102
4133
|
self,
|
4103
4134
|
service_name: Literal["networkmanager"],
|
@@ -5190,6 +5221,20 @@ class Session:
|
|
5190
5221
|
config: Optional[Config] = ...,
|
5191
5222
|
) -> SecretsManagerClient: ...
|
5192
5223
|
@overload
|
5224
|
+
def client(
|
5225
|
+
self,
|
5226
|
+
service_name: Literal["security-ir"],
|
5227
|
+
region_name: Optional[str] = ...,
|
5228
|
+
api_version: Optional[str] = ...,
|
5229
|
+
use_ssl: Optional[bool] = ...,
|
5230
|
+
verify: Union[bool, str, None] = ...,
|
5231
|
+
endpoint_url: Optional[str] = ...,
|
5232
|
+
aws_access_key_id: Optional[str] = ...,
|
5233
|
+
aws_secret_access_key: Optional[str] = ...,
|
5234
|
+
aws_session_token: Optional[str] = ...,
|
5235
|
+
config: Optional[Config] = ...,
|
5236
|
+
) -> SecurityIncidentResponseClient: ...
|
5237
|
+
@overload
|
5193
5238
|
def client(
|
5194
5239
|
self,
|
5195
5240
|
service_name: Literal["securityhub"],
|
boto3-stubs/utils.pyi
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
"""
|
2
|
+
Type annotations for boto3.utils module.
|
3
|
+
|
4
|
+
Copyright 2024 Vlad Emelianov
|
5
|
+
"""
|
6
|
+
|
7
|
+
from typing import Any
|
2
8
|
|
3
9
|
from botocore.model import ServiceModel
|
4
10
|
from botocore.session import Session
|
@@ -9,13 +15,13 @@ class ServiceContext:
|
|
9
15
|
self,
|
10
16
|
service_name: str,
|
11
17
|
service_model: ServiceModel,
|
12
|
-
service_waiter_model:
|
13
|
-
resource_json_definitions:
|
18
|
+
service_waiter_model: WaiterModel | None,
|
19
|
+
resource_json_definitions: dict[str, Any],
|
14
20
|
) -> None: ...
|
15
21
|
|
16
22
|
def import_module(name: str) -> Any: ...
|
17
23
|
def lazy_call(full_name: str, **kwargs: Any) -> Any: ...
|
18
|
-
def inject_attribute(class_attributes:
|
24
|
+
def inject_attribute(class_attributes: dict[str, Any], name: str, value: Any) -> None: ...
|
19
25
|
|
20
26
|
class LazyLoadedWaiterModel:
|
21
27
|
def __init__(self, bc_session: Session, service_name: str, api_version: str) -> None: ...
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3-stubs
|
3
|
-
Version: 1.35.
|
4
|
-
Summary: Type annotations for boto3 1.35.
|
3
|
+
Version: 1.35.72
|
4
|
+
Summary: Type annotations for boto3 1.35.72 generated with mypy-boto3-builder 8.5.0
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
6
6
|
Author: Vlad Emelianov
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
@@ -9,7 +9,7 @@ License: MIT License
|
|
9
9
|
Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/
|
10
10
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
11
11
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
12
|
-
Keywords: boto3
|
12
|
+
Keywords: boto3 boto3-stubs type-annotations typeshed autocomplete
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
14
14
|
Classifier: Intended Audience :: Developers
|
15
15
|
Classifier: Environment :: Console
|
@@ -209,6 +209,7 @@ Requires-Dist: mypy-boto3-inspector<1.36.0,>=1.35.0; extra == "all"
|
|
209
209
|
Requires-Dist: mypy-boto3-inspector-scan<1.36.0,>=1.35.0; extra == "all"
|
210
210
|
Requires-Dist: mypy-boto3-inspector2<1.36.0,>=1.35.0; extra == "all"
|
211
211
|
Requires-Dist: mypy-boto3-internetmonitor<1.36.0,>=1.35.0; extra == "all"
|
212
|
+
Requires-Dist: mypy-boto3-invoicing<1.36.0,>=1.35.0; extra == "all"
|
212
213
|
Requires-Dist: mypy-boto3-iot<1.36.0,>=1.35.0; extra == "all"
|
213
214
|
Requires-Dist: mypy-boto3-iot-data<1.36.0,>=1.35.0; extra == "all"
|
214
215
|
Requires-Dist: mypy-boto3-iot-jobs-data<1.36.0,>=1.35.0; extra == "all"
|
@@ -295,6 +296,7 @@ Requires-Dist: mypy-boto3-neptune<1.36.0,>=1.35.0; extra == "all"
|
|
295
296
|
Requires-Dist: mypy-boto3-neptune-graph<1.36.0,>=1.35.0; extra == "all"
|
296
297
|
Requires-Dist: mypy-boto3-neptunedata<1.36.0,>=1.35.0; extra == "all"
|
297
298
|
Requires-Dist: mypy-boto3-network-firewall<1.36.0,>=1.35.0; extra == "all"
|
299
|
+
Requires-Dist: mypy-boto3-networkflowmonitor<1.36.0,>=1.35.0; extra == "all"
|
298
300
|
Requires-Dist: mypy-boto3-networkmanager<1.36.0,>=1.35.0; extra == "all"
|
299
301
|
Requires-Dist: mypy-boto3-networkmonitor<1.36.0,>=1.35.0; extra == "all"
|
300
302
|
Requires-Dist: mypy-boto3-notifications<1.36.0,>=1.35.0; extra == "all"
|
@@ -373,6 +375,7 @@ Requires-Dist: mypy-boto3-scheduler<1.36.0,>=1.35.0; extra == "all"
|
|
373
375
|
Requires-Dist: mypy-boto3-schemas<1.36.0,>=1.35.0; extra == "all"
|
374
376
|
Requires-Dist: mypy-boto3-sdb<1.36.0,>=1.35.0; extra == "all"
|
375
377
|
Requires-Dist: mypy-boto3-secretsmanager<1.36.0,>=1.35.0; extra == "all"
|
378
|
+
Requires-Dist: mypy-boto3-security-ir<1.36.0,>=1.35.0; extra == "all"
|
376
379
|
Requires-Dist: mypy-boto3-securityhub<1.36.0,>=1.35.0; extra == "all"
|
377
380
|
Requires-Dist: mypy-boto3-securitylake<1.36.0,>=1.35.0; extra == "all"
|
378
381
|
Requires-Dist: mypy-boto3-serverlessrepo<1.36.0,>=1.35.0; extra == "all"
|
@@ -442,8 +445,8 @@ Requires-Dist: mypy-boto3-rds<1.36.0,>=1.35.0; extra == "essential"
|
|
442
445
|
Requires-Dist: mypy-boto3-s3<1.36.0,>=1.35.0; extra == "essential"
|
443
446
|
Requires-Dist: mypy-boto3-sqs<1.36.0,>=1.35.0; extra == "essential"
|
444
447
|
Provides-Extra: boto3
|
445
|
-
Requires-Dist: boto3==1.35.
|
446
|
-
Requires-Dist: botocore==1.35.
|
448
|
+
Requires-Dist: boto3==1.35.72; extra == "boto3"
|
449
|
+
Requires-Dist: botocore==1.35.72; extra == "boto3"
|
447
450
|
Provides-Extra: accessanalyzer
|
448
451
|
Requires-Dist: mypy-boto3-accessanalyzer<1.36.0,>=1.35.0; extra == "accessanalyzer"
|
449
452
|
Provides-Extra: account
|
@@ -790,6 +793,8 @@ Provides-Extra: inspector2
|
|
790
793
|
Requires-Dist: mypy-boto3-inspector2<1.36.0,>=1.35.0; extra == "inspector2"
|
791
794
|
Provides-Extra: internetmonitor
|
792
795
|
Requires-Dist: mypy-boto3-internetmonitor<1.36.0,>=1.35.0; extra == "internetmonitor"
|
796
|
+
Provides-Extra: invoicing
|
797
|
+
Requires-Dist: mypy-boto3-invoicing<1.36.0,>=1.35.0; extra == "invoicing"
|
793
798
|
Provides-Extra: iot
|
794
799
|
Requires-Dist: mypy-boto3-iot<1.36.0,>=1.35.0; extra == "iot"
|
795
800
|
Provides-Extra: iot-data
|
@@ -962,6 +967,8 @@ Provides-Extra: neptunedata
|
|
962
967
|
Requires-Dist: mypy-boto3-neptunedata<1.36.0,>=1.35.0; extra == "neptunedata"
|
963
968
|
Provides-Extra: network-firewall
|
964
969
|
Requires-Dist: mypy-boto3-network-firewall<1.36.0,>=1.35.0; extra == "network-firewall"
|
970
|
+
Provides-Extra: networkflowmonitor
|
971
|
+
Requires-Dist: mypy-boto3-networkflowmonitor<1.36.0,>=1.35.0; extra == "networkflowmonitor"
|
965
972
|
Provides-Extra: networkmanager
|
966
973
|
Requires-Dist: mypy-boto3-networkmanager<1.36.0,>=1.35.0; extra == "networkmanager"
|
967
974
|
Provides-Extra: networkmonitor
|
@@ -1118,6 +1125,8 @@ Provides-Extra: sdb
|
|
1118
1125
|
Requires-Dist: mypy-boto3-sdb<1.36.0,>=1.35.0; extra == "sdb"
|
1119
1126
|
Provides-Extra: secretsmanager
|
1120
1127
|
Requires-Dist: mypy-boto3-secretsmanager<1.36.0,>=1.35.0; extra == "secretsmanager"
|
1128
|
+
Provides-Extra: security-ir
|
1129
|
+
Requires-Dist: mypy-boto3-security-ir<1.36.0,>=1.35.0; extra == "security-ir"
|
1121
1130
|
Provides-Extra: securityhub
|
1122
1131
|
Requires-Dist: mypy-boto3-securityhub<1.36.0,>=1.35.0; extra == "securityhub"
|
1123
1132
|
Provides-Extra: securitylake
|
@@ -1250,7 +1259,7 @@ Requires-Dist: mypy-boto3-xray<1.36.0,>=1.35.0; extra == "xray"
|
|
1250
1259
|
|
1251
1260
|

|
1252
1261
|
|
1253
|
-
Type annotations for [boto3 1.35.
|
1262
|
+
Type annotations for [boto3 1.35.72](https://pypi.org/project/boto3/)
|
1254
1263
|
compatible with [VSCode](https://code.visualstudio.com/),
|
1255
1264
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
1256
1265
|
[Emacs](https://www.gnu.org/software/emacs/),
|
@@ -1259,14 +1268,14 @@ compatible with [VSCode](https://code.visualstudio.com/),
|
|
1259
1268
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
1260
1269
|
|
1261
1270
|
Generated by
|
1262
|
-
[mypy-boto3-builder 8.
|
1271
|
+
[mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
|
1263
1272
|
|
1264
1273
|
More information can be found in
|
1265
1274
|
[boto3-stubs docs](https://youtype.github.io/boto3_stubs_docs/).
|
1266
1275
|
|
1267
1276
|
See how it helps you find and fix potential bugs:
|
1268
1277
|
|
1269
|
-

|
1270
1279
|
|
1271
1280
|
- [boto3-stubs](#boto3-stubs)
|
1272
1281
|
- [How to install](#how-to-install)
|
@@ -1282,8 +1291,8 @@ See how it helps you find and fix potential bugs:
|
|
1282
1291
|
- [Other IDEs](#other-ides)
|
1283
1292
|
- [mypy](#mypy)
|
1284
1293
|
- [pyright](#pyright)
|
1285
|
-
- [Explicit type annotations](#explicit-type-annotations)
|
1286
1294
|
- [Pylint compatibility](#pylint-compatibility)
|
1295
|
+
- [Explicit type annotations](#explicit-type-annotations)
|
1287
1296
|
- [How it works](#how-it-works)
|
1288
1297
|
- [What's new](#what's-new)
|
1289
1298
|
- [Implemented features](#implemented-features)
|
@@ -1511,6 +1520,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
1511
1520
|
Type checking should now work. No explicit type annotations required, write
|
1512
1521
|
your `boto3` code as usual.
|
1513
1522
|
|
1523
|
+
<a id="pylint-compatibility"></a>
|
1524
|
+
|
1525
|
+
### Pylint compatibility
|
1526
|
+
|
1527
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid `boto3-stubs`
|
1528
|
+
dependency in production. However, there is an issue in `pylint` that it
|
1529
|
+
complains about undefined variables. To fix it, set all types to `object` in
|
1530
|
+
non-`TYPE_CHECKING` mode.
|
1531
|
+
|
1532
|
+
```python
|
1533
|
+
from typing import TYPE_CHECKING
|
1534
|
+
|
1535
|
+
if TYPE_CHECKING:
|
1536
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
1537
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
1538
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
1539
|
+
else:
|
1540
|
+
EC2Client = object
|
1541
|
+
EC2ServiceResource = object
|
1542
|
+
BundleTaskCompleteWaiter = object
|
1543
|
+
DescribeVolumesPaginator = object
|
1544
|
+
|
1545
|
+
...
|
1546
|
+
```
|
1547
|
+
|
1514
1548
|
<a id="explicit-type-annotations"></a>
|
1515
1549
|
|
1516
1550
|
### Explicit type annotations
|
@@ -1537,32 +1571,6 @@ bundle_task_complete_waiter: BundleTaskCompleteWaiter = ec2_client.get_waiter(
|
|
1537
1571
|
describe_volumes_paginator: DescribeVolumesPaginator = ec2_client.get_paginator("describe_volumes")
|
1538
1572
|
```
|
1539
1573
|
|
1540
|
-
<a id="pylint-compatibility"></a>
|
1541
|
-
|
1542
|
-
### Pylint compatibility
|
1543
|
-
|
1544
|
-
It is totally safe to use `TYPE_CHECKING` flag in order to avoid `boto3-stubs`
|
1545
|
-
dependency in production. However, there is an issue in `pylint` that it
|
1546
|
-
complains about undefined variables. To fix it, set all types to `object` in
|
1547
|
-
non-`TYPE_CHECKING` mode.
|
1548
|
-
|
1549
|
-
```python
|
1550
|
-
import boto3
|
1551
|
-
from typing import TYPE_CHECKING
|
1552
|
-
|
1553
|
-
if TYPE_CHECKING:
|
1554
|
-
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
1555
|
-
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
1556
|
-
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
1557
|
-
else:
|
1558
|
-
EC2Client = object
|
1559
|
-
EC2ServiceResource = object
|
1560
|
-
BundleTaskCompleteWaiter = object
|
1561
|
-
DescribeVolumesPaginator = object
|
1562
|
-
|
1563
|
-
...
|
1564
|
-
```
|
1565
|
-
|
1566
1574
|
<a id="how-it-works"></a>
|
1567
1575
|
|
1568
1576
|
## How it works
|
@@ -1651,9 +1659,9 @@ repository.
|
|
1651
1659
|
|
1652
1660
|
## Submodules
|
1653
1661
|
|
1654
|
-
- `boto3-stubs[full]` - Type annotations for all
|
1662
|
+
- `boto3-stubs[full]` - Type annotations for all 400 services in one package
|
1655
1663
|
(recommended).
|
1656
|
-
- `boto3-stubs[all]` - Type annotations for all
|
1664
|
+
- `boto3-stubs[all]` - Type annotations for all 400 services in separate
|
1657
1665
|
packages.
|
1658
1666
|
- `boto3-stubs[essential]` - Type annotations for
|
1659
1667
|
[CloudFormation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_cloudformation/),
|
@@ -2166,6 +2174,9 @@ repository.
|
|
2166
2174
|
- `boto3-stubs[internetmonitor]` - Type annotations for
|
2167
2175
|
[CloudWatchInternetMonitor](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_internetmonitor/)
|
2168
2176
|
service.
|
2177
|
+
- `boto3-stubs[invoicing]` - Type annotations for
|
2178
|
+
[Invoicing](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_invoicing/)
|
2179
|
+
service.
|
2169
2180
|
- `boto3-stubs[iot]` - Type annotations for
|
2170
2181
|
[IoT](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_iot/) service.
|
2171
2182
|
- `boto3-stubs[iot-data]` - Type annotations for
|
@@ -2418,6 +2429,9 @@ repository.
|
|
2418
2429
|
- `boto3-stubs[network-firewall]` - Type annotations for
|
2419
2430
|
[NetworkFirewall](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_network_firewall/)
|
2420
2431
|
service.
|
2432
|
+
- `boto3-stubs[networkflowmonitor]` - Type annotations for
|
2433
|
+
[NetworkFlowMonitor](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_networkflowmonitor/)
|
2434
|
+
service.
|
2421
2435
|
- `boto3-stubs[networkmanager]` - Type annotations for
|
2422
2436
|
[NetworkManager](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_networkmanager/)
|
2423
2437
|
service.
|
@@ -2647,6 +2661,9 @@ repository.
|
|
2647
2661
|
- `boto3-stubs[secretsmanager]` - Type annotations for
|
2648
2662
|
[SecretsManager](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_secretsmanager/)
|
2649
2663
|
service.
|
2664
|
+
- `boto3-stubs[security-ir]` - Type annotations for
|
2665
|
+
[SecurityIncidentResponse](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_security_ir/)
|
2666
|
+
service.
|
2650
2667
|
- `boto3-stubs[securityhub]` - Type annotations for
|
2651
2668
|
[SecurityHub](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_securityhub/)
|
2652
2669
|
service.
|
@@ -0,0 +1,45 @@
|
|
1
|
+
boto3-stubs/__init__.pyi,sha256=t310BIbWQF8ctZGi-GHVCjun50b7DsU5Go-TNT-JFsM,215254
|
2
|
+
boto3-stubs/compat.pyi,sha256=j3-SBZqCGaoZoXzN6e7fkEQQvUmQ-MpIpcF9FuuUHH0,209
|
3
|
+
boto3-stubs/crt.pyi,sha256=OAjGbtBlQJIDRctWkMpr7UwRKxiH_lQt9OdSrHPL3QI,893
|
4
|
+
boto3-stubs/exceptions.pyi,sha256=cjOrbR2BIOcaHRmIQvGL0y-XEJdicpzRl2dQNfx6GVk,1339
|
5
|
+
boto3-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
boto3-stubs/session.pyi,sha256=QTq8ITtAm2OM2LRAR3j_QkHx5LqybUbXQBDlb0B-QT8,243423
|
7
|
+
boto3-stubs/utils.pyi,sha256=2vtGuLR-fnfzUNoeNvcEbb0Lb-DGEZ-BQ5BV9xF8vSg,841
|
8
|
+
boto3-stubs/docs/__init__.pyi,sha256=uDkzwRXE_Bb65mlFvnPSySeRYnhK9Cpk4fUyK6gpBd0,179
|
9
|
+
boto3-stubs/docs/action.pyi,sha256=_vWYnBVkwK6kU3xTdr5tPGxL-s3ULaAFBnxuFLHsmsE,1016
|
10
|
+
boto3-stubs/docs/attr.pyi,sha256=6zGNEVUHUz0UjEDSYnDn-vBnydZKU9ENarzf6rss-3c,922
|
11
|
+
boto3-stubs/docs/base.pyi,sha256=n6aR2CAPB8klG0Lh8MAaVWNERIRloCtZ7ICzu7r3jOo,465
|
12
|
+
boto3-stubs/docs/client.pyi,sha256=mtlw2uqS__9HXLwjURqgd0w15QsabS2HuGHgSD40WRk,189
|
13
|
+
boto3-stubs/docs/collection.pyi,sha256=30Vp9-fBYjtVx2Gp0VfONnE_l0ZhQjWj1guv9d52aWA,1112
|
14
|
+
boto3-stubs/docs/docstring.pyi,sha256=qa35PZg3tUgypnDNOtND9po_WyesZMKbQpsRc4VsnVQ,673
|
15
|
+
boto3-stubs/docs/method.pyi,sha256=qi2f8wtk94y2PiRu_B1-9l1EebnQ9pt8bCKYgKH4JIE,772
|
16
|
+
boto3-stubs/docs/resource.pyi,sha256=lPQea0skxqynF8kKfugp1R3AUQabIUVxGVciDFkHKQo,562
|
17
|
+
boto3-stubs/docs/service.pyi,sha256=32cydjUn5qekLWAavmwjNhFEPxCNBrMvLmCvMSh0gzE,632
|
18
|
+
boto3-stubs/docs/subresource.pyi,sha256=IE-kBqbGgsCgnLOzMK5VKDWUFdgVhImZS6db09ODiDo,606
|
19
|
+
boto3-stubs/docs/utils.pyi,sha256=sAVH31W2eqOgZBE9gzjNallHoGskJ5Oegxs4bM78EcE,1101
|
20
|
+
boto3-stubs/docs/waiter.pyi,sha256=wCaNTXg-XRiPj43Rg3F7anitaJ2pmuhCHvY1JJeu_5k,881
|
21
|
+
boto3-stubs/dynamodb/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
+
boto3-stubs/dynamodb/conditions.pyi,sha256=hboN648JfDwDuqDxKYHwUZR5RJ-dUKH1Mv1JiSn-Lus,5226
|
23
|
+
boto3-stubs/dynamodb/table.pyi,sha256=ivXevhwMr2utFtlAxrkAHjyyFOgd7vrWNTaLjlUIeSU,1048
|
24
|
+
boto3-stubs/dynamodb/transform.pyi,sha256=1DUgxE2tvfoY7leVURr62sQuSFGeiyl0YHrIGJQe0Us,1765
|
25
|
+
boto3-stubs/dynamodb/types.pyi,sha256=JZmpjFHgET_3-xWUm20MA6VFk98rVE6VWTYoDSo_NeE,1114
|
26
|
+
boto3-stubs/ec2/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
+
boto3-stubs/ec2/createtags.pyi,sha256=5hsqujO1KzORtxlD0BzZpklljeXJTVJYiBDRZoqaRio,313
|
28
|
+
boto3-stubs/ec2/deletetags.pyi,sha256=uHIcutgqg2nrI-kDFe3grbNZ5YiE6R9kZcJXJOWjboI,294
|
29
|
+
boto3-stubs/resources/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
+
boto3-stubs/resources/action.pyi,sha256=dn9UULDmjczEEkn6kHrYU5qbmYKsh1omzYvVbwcQin0,1598
|
31
|
+
boto3-stubs/resources/base.pyi,sha256=vsiZZqJMYZKXhcu6IM8j7-jk_-DObRwgpj4kCM3Kiuc,1090
|
32
|
+
boto3-stubs/resources/collection.pyi,sha256=QRQX4uU-LYJSHZ1FoJn-h78uQ-ZXZedkWsA5bo1qLIQ,1940
|
33
|
+
boto3-stubs/resources/factory.pyi,sha256=JvEoo0cI0l_4y7w0jtox8SaUuFL_8Y8KresR5N6VLHc,577
|
34
|
+
boto3-stubs/resources/model.pyi,sha256=kpoEGVW9HwWLC1_pQ4pP3yIdZjRFnapWWKEDDqnWaG8,3348
|
35
|
+
boto3-stubs/resources/params.pyi,sha256=gmPIqfvLPlZB9lnwIL8ZJI8eEwCcpK0bqlt0mWviThI,629
|
36
|
+
boto3-stubs/resources/response.pyi,sha256=pXdB7YMWdZ7_ZLIAhb7iPhJkLsakC8xTObBC9l2smYA,1636
|
37
|
+
boto3-stubs/s3/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
+
boto3-stubs/s3/constants.pyi,sha256=U9MRV6GXbxTyEfKLsp3fVKzLR85KSSSP5FbcIWVHX54,163
|
39
|
+
boto3-stubs/s3/inject.pyi,sha256=z72QArriCVYH-O15Z5yDGnMX0zo7nCmYhSB2tiIRTeo,4502
|
40
|
+
boto3-stubs/s3/transfer.pyi,sha256=7A4hY7nziEaFM6fFhhneQYgB8aPa_on4i3DhOxh1_7s,2536
|
41
|
+
boto3_stubs-1.35.72.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
42
|
+
boto3_stubs-1.35.72.dist-info/METADATA,sha256=oFpN02NIF0ZExgqvKE-TorbBOZSmey2cMYwzeyciDy0,146990
|
43
|
+
boto3_stubs-1.35.72.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
44
|
+
boto3_stubs-1.35.72.dist-info/top_level.txt,sha256=uB_lQ39lkJ_VYZ_88DxH_zFptJtIwQ_SzeMpW8tRmT4,12
|
45
|
+
boto3_stubs-1.35.72.dist-info/RECORD,,
|
@@ -1,45 +0,0 @@
|
|
1
|
-
boto3-stubs/__init__.pyi,sha256=uKJWpCfOsWkbMixSZmPpRj4AyuG-PhnbseSr116_Hic,213660
|
2
|
-
boto3-stubs/compat.pyi,sha256=xa8V0D9EklCqKSzPAsOCRxSFn9o7ZsabgMB2NbezRU8,151
|
3
|
-
boto3-stubs/crt.pyi,sha256=I9HtByOVDaxLR8UI0IVRgEnd09-9nP7cz6aLchQGJy4,839
|
4
|
-
boto3-stubs/exceptions.pyi,sha256=5RiiwvZt6WJg4NmdBqiw_F3edX-hZCPft50s3YRd_Gg,1253
|
5
|
-
boto3-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
boto3-stubs/session.pyi,sha256=TOPknqD4mK3o4L9qAzVgOrbxBjyJKJgmwcQBiNFM058,241631
|
7
|
-
boto3-stubs/utils.pyi,sha256=aFM7Aoxm8HuplG367JDYs5-zZ_YQpKr7ONPs1x7f15Y,779
|
8
|
-
boto3-stubs/docs/__init__.pyi,sha256=wGWFUev9EDG-4NT4l-JUjzFUsypBQf2kwFBfdb1uJeU,99
|
9
|
-
boto3-stubs/docs/action.pyi,sha256=swA73r0izUswkhU7lChbW4FZN491Q8HjcxnwlyDnAuE,960
|
10
|
-
boto3-stubs/docs/attr.pyi,sha256=8HvOBUZModgA6C2ooeZwc4Ohe-Wxtu1CjneDcIzzepc,837
|
11
|
-
boto3-stubs/docs/base.pyi,sha256=hYdyNgO31OXqtBAH3EqVaW1lxHHnaW64tAYOY6mnJoM,386
|
12
|
-
boto3-stubs/docs/client.pyi,sha256=LjD603Ya-woOwSpPDCIuR18Ncybf-7TpX_4USmwvpbg,102
|
13
|
-
boto3-stubs/docs/collection.pyi,sha256=5EDcfJ-WfaGC9mgwWnbq62bO0EFOSOplcrZ8esC9ngk,1021
|
14
|
-
boto3-stubs/docs/docstring.pyi,sha256=B4SvarMezHVbItbOMYAWRhQf0SYwSgGZn8PD9ncWZ0w,583
|
15
|
-
boto3-stubs/docs/method.pyi,sha256=oYhYhMgEzeQNIU6gQDItJzSCEGRW60t7Ywm_SRgNoYc,716
|
16
|
-
boto3-stubs/docs/resource.pyi,sha256=dN9tzbGOLRjUE7uPiC4o-BEDyDMkyHgE0wYpeJHP6gA,473
|
17
|
-
boto3-stubs/docs/service.pyi,sha256=OaXSSMfmfxMnh7ws8mKLdlt91JXMRQxU4Fj7RgRBwx4,569
|
18
|
-
boto3-stubs/docs/subresource.pyi,sha256=1Iia63jqtZwlbiVRwtoxU1e6yvfVHElPEhoM6eebc-k,514
|
19
|
-
boto3-stubs/docs/utils.pyi,sha256=bD81ElRcEIreIuIXIzwcCGJWv7BwuubsS1Ha_IwPtNo,1034
|
20
|
-
boto3-stubs/docs/waiter.pyi,sha256=3qh3S0BGU-papbnpSdOamr8RDLBxGrytY0OOxRRzrP0,794
|
21
|
-
boto3-stubs/dynamodb/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
boto3-stubs/dynamodb/conditions.pyi,sha256=J5gkps9ttGUMc8jqBJR2hdDBtWhfjtHqn_JtGMkZDpA,5463
|
23
|
-
boto3-stubs/dynamodb/table.pyi,sha256=RG3muXb6M-n77JQn8zW8f31KIzTjVhM54eEmMdTByYE,1003
|
24
|
-
boto3-stubs/dynamodb/transform.pyi,sha256=Yu9dmcgOfw_ZSo_sSTvbd6LKYbC7_vpsI7TxSOyRyW4,1705
|
25
|
-
boto3-stubs/dynamodb/types.pyi,sha256=x9Nqn8wSTYx6S0gFSNDvNNlB7seiepqGdpalojebD10,1426
|
26
|
-
boto3-stubs/ec2/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
-
boto3-stubs/ec2/createtags.pyi,sha256=CcbwkLP_0j8wPMfNft72-_Sqd1-0SXjbvfkACxtpS34,235
|
28
|
-
boto3-stubs/ec2/deletetags.pyi,sha256=1jRFLP0hH_JMRW7wKf1YyH2yGS3MhclEZ999Fy5qJzs,204
|
29
|
-
boto3-stubs/resources/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
-
boto3-stubs/resources/action.pyi,sha256=Y3gDvwA1gj7MoejxnRrQYXy5znLHRIwWRym-3XPvK5o,1546
|
31
|
-
boto3-stubs/resources/base.pyi,sha256=SdN-6pD5THG6jrEwMyRkAynFOzJt9u3ydTOQfNsqpa8,1101
|
32
|
-
boto3-stubs/resources/collection.pyi,sha256=MurweTycZ2fdOO7PSgRalyKb_zz-GgKi3D2A0-rc_To,1922
|
33
|
-
boto3-stubs/resources/factory.pyi,sha256=9A0RHo8kRPE8xuzDCSHkxJCAsKk_oHmDiXwVj-i9_fk,496
|
34
|
-
boto3-stubs/resources/model.pyi,sha256=QAZczHtWlTvfW08NCQDUi88ipInPNRK38SHpDMICxOM,3705
|
35
|
-
boto3-stubs/resources/params.pyi,sha256=v7-qSPWhisLYXC3xdB1JKAkOgKBBEbvPiZqFglzaSY4,565
|
36
|
-
boto3-stubs/resources/response.pyi,sha256=fYbfRbFvoWRXejmVi9iL8kWoagj336M_cFfWwSzhNs4,1607
|
37
|
-
boto3-stubs/s3/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
-
boto3-stubs/s3/constants.pyi,sha256=9MYiVx6cRf9tcrxvpy0Ubi4HGyrmUj19WQA54lmfoR8,75
|
39
|
-
boto3-stubs/s3/inject.pyi,sha256=UxVi6tYfEYdvc8cKldt9StTEGFHWTdd-867frSfxF9w,4577
|
40
|
-
boto3-stubs/s3/transfer.pyi,sha256=L1Nix_RmkmgT-XCxkk6L2FAIwnJqXppLXc0UnHHnMjs,2516
|
41
|
-
boto3_stubs-1.35.71.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
42
|
-
boto3_stubs-1.35.71.dist-info/METADATA,sha256=1FUmzt-qVTEew32M-6ix0hPTilGXp3NWuoMJt-0afEc,145991
|
43
|
-
boto3_stubs-1.35.71.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
44
|
-
boto3_stubs-1.35.71.dist-info/top_level.txt,sha256=uB_lQ39lkJ_VYZ_88DxH_zFptJtIwQ_SzeMpW8tRmT4,12
|
45
|
-
boto3_stubs-1.35.71.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|