mypy-boto3-organizations 1.35.60__tar.gz → 1.35.72__tar.gz
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.
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/PKG-INFO +58 -17
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/README.md +55 -14
- mypy_boto3_organizations-1.35.60/mypy_boto3_organizations/__init__.pyi → mypy_boto3_organizations-1.35.72/mypy_boto3_organizations/__init__.py +3 -0
- mypy_boto3_organizations-1.35.60/mypy_boto3_organizations/__init__.py → mypy_boto3_organizations-1.35.72/mypy_boto3_organizations/__init__.pyi +2 -1
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/__main__.py +7 -5
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/client.py +169 -162
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/client.pyi +169 -162
- mypy_boto3_organizations-1.35.60/mypy_boto3_organizations/literals.pyi → mypy_boto3_organizations-1.35.72/mypy_boto3_organizations/literals.py +19 -1
- mypy_boto3_organizations-1.35.60/mypy_boto3_organizations/literals.py → mypy_boto3_organizations-1.35.72/mypy_boto3_organizations/literals.pyi +17 -3
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/paginator.py +34 -32
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/paginator.pyi +34 -32
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/type_defs.py +2 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/type_defs.pyi +2 -0
- mypy_boto3_organizations-1.35.72/mypy_boto3_organizations/version.py +7 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/PKG-INFO +58 -17
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/setup.py +5 -3
- mypy_boto3_organizations-1.35.60/mypy_boto3_organizations/version.py +0 -5
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/LICENSE +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations/py.typed +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/SOURCES.txt +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/not-zip-safe +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/requires.txt +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/mypy_boto3_organizations.egg-info/top_level.txt +0 -0
- {mypy_boto3_organizations-1.35.60 → mypy_boto3_organizations-1.35.72}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mypy-boto3-organizations
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3
|
|
3
|
+
Version: 1.35.72
|
|
4
|
+
Summary: Type annotations for boto3 Organizations 1.35.72 service 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/mypy_boto3_organizations/
|
|
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 organizations type-annotations
|
|
12
|
+
Keywords: boto3 organizations boto3-stubs type-annotations mypy typeshed autocomplete
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
@@ -36,16 +36,16 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
36
36
|
|
|
37
37
|
# mypy-boto3-organizations
|
|
38
38
|
|
|
39
|
-
[](https://pypi.org/project/mypy-boto3-organizations)
|
|
40
|
-
[](https://pypi.org/project/mypy-boto3-organizations)
|
|
41
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
42
|
-
[](https://
|
|
39
|
+
[](https://pypi.org/project/mypy-boto3-organizations/)
|
|
40
|
+
[](https://pypi.org/project/mypy-boto3-organizations/)
|
|
41
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
42
|
+
[](https://pypistats.org/packages/mypy-boto3-organizations)
|
|
43
43
|
|
|
44
44
|

|
|
45
45
|
|
|
46
46
|
Type annotations for
|
|
47
|
-
[boto3
|
|
48
|
-
|
|
47
|
+
[boto3 Organizations 1.35.72](https://pypi.org/project/boto3/) compatible with
|
|
48
|
+
[VSCode](https://code.visualstudio.com/),
|
|
49
49
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
50
50
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
51
51
|
[Sublime Text](https://www.sublimetext.com/),
|
|
@@ -53,15 +53,15 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
53
53
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
54
54
|
|
|
55
55
|
Generated by
|
|
56
|
-
[mypy-boto3-builder 8.
|
|
56
|
+
[mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
|
|
57
57
|
|
|
58
58
|
More information can be found on
|
|
59
59
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
60
60
|
[mypy-boto3-organizations docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_organizations/).
|
|
61
61
|
|
|
62
|
-
See how it helps
|
|
62
|
+
See how it helps you find and fix potential bugs:
|
|
63
63
|
|
|
64
|
-

|
|
65
65
|
|
|
66
66
|
- [mypy-boto3-organizations](#mypy-boto3-organizations)
|
|
67
67
|
- [How to install](#how-to-install)
|
|
@@ -76,6 +76,7 @@ See how it helps to find and fix potential bugs:
|
|
|
76
76
|
- [Other IDEs](#other-ides)
|
|
77
77
|
- [mypy](#mypy)
|
|
78
78
|
- [pyright](#pyright)
|
|
79
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
79
80
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
80
81
|
- [Client annotations](#client-annotations)
|
|
81
82
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -158,16 +159,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
158
159
|
|
|
159
160
|
### PyCharm
|
|
160
161
|
|
|
161
|
-
|
|
162
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
163
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
164
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
165
|
+
> the issue is resolved.
|
|
166
|
+
|
|
167
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
168
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
169
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
170
|
+
|
|
171
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
172
|
+
> `boto3-stubs` with
|
|
173
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
162
174
|
|
|
163
175
|
```bash
|
|
164
|
-
|
|
176
|
+
pip uninstall boto3-stubs
|
|
177
|
+
pip install boto3-stubs-lite
|
|
165
178
|
```
|
|
166
179
|
|
|
167
|
-
|
|
168
|
-
|
|
180
|
+
Install `boto3-stubs[organizations]` in your environment:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
python -m pip install 'boto3-stubs[organizations]'
|
|
184
|
+
```
|
|
169
185
|
|
|
170
|
-
|
|
186
|
+
Both type checking and code completion should now work.
|
|
171
187
|
|
|
172
188
|
<a id="emacs"></a>
|
|
173
189
|
|
|
@@ -254,6 +270,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
254
270
|
Type checking should now work. No explicit type annotations required, write
|
|
255
271
|
your `boto3` code as usual.
|
|
256
272
|
|
|
273
|
+
<a id="pylint-compatibility"></a>
|
|
274
|
+
|
|
275
|
+
### Pylint compatibility
|
|
276
|
+
|
|
277
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
278
|
+
`mypy-boto3-organizations` dependency in production. However, there is an issue
|
|
279
|
+
in `pylint` that it complains about undefined variables. To fix it, set all
|
|
280
|
+
types to `object` in non-`TYPE_CHECKING` mode.
|
|
281
|
+
|
|
282
|
+
```python
|
|
283
|
+
from typing import TYPE_CHECKING
|
|
284
|
+
|
|
285
|
+
if TYPE_CHECKING:
|
|
286
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
287
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
288
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
289
|
+
else:
|
|
290
|
+
EC2Client = object
|
|
291
|
+
EC2ServiceResource = object
|
|
292
|
+
BundleTaskCompleteWaiter = object
|
|
293
|
+
DescribeVolumesPaginator = object
|
|
294
|
+
|
|
295
|
+
...
|
|
296
|
+
```
|
|
297
|
+
|
|
257
298
|
<a id="explicit-type-annotations"></a>
|
|
258
299
|
|
|
259
300
|
## Explicit type annotations
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
# mypy-boto3-organizations
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/mypy-boto3-organizations)
|
|
6
|
-
[](https://pypi.org/project/mypy-boto3-organizations)
|
|
7
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
8
|
-
[](https://
|
|
5
|
+
[](https://pypi.org/project/mypy-boto3-organizations/)
|
|
6
|
+
[](https://pypi.org/project/mypy-boto3-organizations/)
|
|
7
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
8
|
+
[](https://pypistats.org/packages/mypy-boto3-organizations)
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3
|
|
14
|
-
|
|
13
|
+
[boto3 Organizations 1.35.72](https://pypi.org/project/boto3/) compatible with
|
|
14
|
+
[VSCode](https://code.visualstudio.com/),
|
|
15
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
17
17
|
[Sublime Text](https://www.sublimetext.com/),
|
|
@@ -19,15 +19,15 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
19
19
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
20
20
|
|
|
21
21
|
Generated by
|
|
22
|
-
[mypy-boto3-builder 8.
|
|
22
|
+
[mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
|
|
23
23
|
|
|
24
24
|
More information can be found on
|
|
25
25
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
26
26
|
[mypy-boto3-organizations docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_organizations/).
|
|
27
27
|
|
|
28
|
-
See how it helps
|
|
28
|
+
See how it helps you find and fix potential bugs:
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
- [mypy-boto3-organizations](#mypy-boto3-organizations)
|
|
33
33
|
- [How to install](#how-to-install)
|
|
@@ -42,6 +42,7 @@ See how it helps to find and fix potential bugs:
|
|
|
42
42
|
- [Other IDEs](#other-ides)
|
|
43
43
|
- [mypy](#mypy)
|
|
44
44
|
- [pyright](#pyright)
|
|
45
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
45
46
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
46
47
|
- [Client annotations](#client-annotations)
|
|
47
48
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -124,16 +125,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
124
125
|
|
|
125
126
|
### PyCharm
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
129
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
130
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
131
|
+
> the issue is resolved.
|
|
132
|
+
|
|
133
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
134
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
135
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
136
|
+
|
|
137
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
138
|
+
> `boto3-stubs` with
|
|
139
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
128
140
|
|
|
129
141
|
```bash
|
|
130
|
-
|
|
142
|
+
pip uninstall boto3-stubs
|
|
143
|
+
pip install boto3-stubs-lite
|
|
131
144
|
```
|
|
132
145
|
|
|
133
|
-
|
|
134
|
-
|
|
146
|
+
Install `boto3-stubs[organizations]` in your environment:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
python -m pip install 'boto3-stubs[organizations]'
|
|
150
|
+
```
|
|
135
151
|
|
|
136
|
-
|
|
152
|
+
Both type checking and code completion should now work.
|
|
137
153
|
|
|
138
154
|
<a id="emacs"></a>
|
|
139
155
|
|
|
@@ -220,6 +236,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
220
236
|
Type checking should now work. No explicit type annotations required, write
|
|
221
237
|
your `boto3` code as usual.
|
|
222
238
|
|
|
239
|
+
<a id="pylint-compatibility"></a>
|
|
240
|
+
|
|
241
|
+
### Pylint compatibility
|
|
242
|
+
|
|
243
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
244
|
+
`mypy-boto3-organizations` dependency in production. However, there is an issue
|
|
245
|
+
in `pylint` that it complains about undefined variables. To fix it, set all
|
|
246
|
+
types to `object` in non-`TYPE_CHECKING` mode.
|
|
247
|
+
|
|
248
|
+
```python
|
|
249
|
+
from typing import TYPE_CHECKING
|
|
250
|
+
|
|
251
|
+
if TYPE_CHECKING:
|
|
252
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
253
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
254
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
255
|
+
else:
|
|
256
|
+
EC2Client = object
|
|
257
|
+
EC2ServiceResource = object
|
|
258
|
+
BundleTaskCompleteWaiter = object
|
|
259
|
+
DescribeVolumesPaginator = object
|
|
260
|
+
|
|
261
|
+
...
|
|
262
|
+
```
|
|
263
|
+
|
|
223
264
|
<a id="explicit-type-annotations"></a>
|
|
224
265
|
|
|
225
266
|
## Explicit type annotations
|
|
@@ -46,6 +46,8 @@ Usage::
|
|
|
46
46
|
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
|
|
47
47
|
list_targets_for_policy_paginator: ListTargetsForPolicyPaginator = client.get_paginator("list_targets_for_policy")
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
Copyright 2024 Vlad Emelianov
|
|
49
51
|
"""
|
|
50
52
|
|
|
51
53
|
from .client import OrganizationsClient
|
|
@@ -70,6 +72,7 @@ from .paginator import (
|
|
|
70
72
|
|
|
71
73
|
Client = OrganizationsClient
|
|
72
74
|
|
|
75
|
+
|
|
73
76
|
__all__ = (
|
|
74
77
|
"Client",
|
|
75
78
|
"ListAWSServiceAccessForOrganizationPaginator",
|
|
@@ -46,6 +46,8 @@ Usage::
|
|
|
46
46
|
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
|
|
47
47
|
list_targets_for_policy_paginator: ListTargetsForPolicyPaginator = client.get_paginator("list_targets_for_policy")
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
Copyright 2024 Vlad Emelianov
|
|
49
51
|
"""
|
|
50
52
|
|
|
51
53
|
from .client import OrganizationsClient
|
|
@@ -70,7 +72,6 @@ from .paginator import (
|
|
|
70
72
|
|
|
71
73
|
Client = OrganizationsClient
|
|
72
74
|
|
|
73
|
-
|
|
74
75
|
__all__ = (
|
|
75
76
|
"Client",
|
|
76
77
|
"ListAWSServiceAccessForOrganizationPaginator",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
3
5
|
"""
|
|
4
6
|
|
|
5
7
|
import sys
|
|
@@ -10,11 +12,11 @@ def print_info() -> None:
|
|
|
10
12
|
Print package info to stdout.
|
|
11
13
|
"""
|
|
12
14
|
print(
|
|
13
|
-
"Type annotations for boto3
|
|
14
|
-
"Version: 1.35.
|
|
15
|
-
"Builder version: 8.
|
|
15
|
+
"Type annotations for boto3 Organizations 1.35.72\n"
|
|
16
|
+
"Version: 1.35.72\n"
|
|
17
|
+
"Builder version: 8.5.0\n"
|
|
16
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_organizations//\n"
|
|
17
|
-
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations.html#
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/organizations.html#organizations\n"
|
|
18
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
19
21
|
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
20
22
|
)
|
|
@@ -24,7 +26,7 @@ def print_version() -> None:
|
|
|
24
26
|
"""
|
|
25
27
|
Print package version to stdout.
|
|
26
28
|
"""
|
|
27
|
-
print("1.35.
|
|
29
|
+
print("1.35.72")
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
def main() -> None:
|