mypy-boto3-connectcases 1.35.0__tar.gz → 1.35.93__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_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/LICENSE +1 -1
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/PKG-INFO +80 -25
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/README.md +75 -21
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/__init__.py +3 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/__init__.pyi +2 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/__main__.py +11 -8
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/client.py +177 -211
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/client.pyi +176 -210
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/literals.py +32 -9
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/literals.pyi +30 -9
- mypy_boto3_connectcases-1.35.0/mypy_boto3_connectcases/paginator.pyi → mypy_boto3_connectcases-1.35.93/mypy_boto3_connectcases/paginator.py +39 -37
- mypy_boto3_connectcases-1.35.0/mypy_boto3_connectcases/paginator.py → mypy_boto3_connectcases-1.35.93/mypy_boto3_connectcases/paginator.pyi +34 -42
- mypy_boto3_connectcases-1.35.93/mypy_boto3_connectcases/type_defs.py +943 -0
- mypy_boto3_connectcases-1.35.93/mypy_boto3_connectcases/type_defs.pyi +827 -0
- mypy_boto3_connectcases-1.35.93/mypy_boto3_connectcases/version.py +7 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/PKG-INFO +80 -25
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/requires.txt +1 -1
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/setup.py +7 -6
- mypy_boto3_connectcases-1.35.0/mypy_boto3_connectcases/type_defs.py +0 -1114
- mypy_boto3_connectcases-1.35.0/mypy_boto3_connectcases/type_defs.pyi +0 -1114
- mypy_boto3_connectcases-1.35.0/mypy_boto3_connectcases/version.py +0 -5
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases/py.typed +0 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/SOURCES.txt +0 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/not-zip-safe +0 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/mypy_boto3_connectcases.egg-info/top_level.txt +0 -0
- {mypy_boto3_connectcases-1.35.0 → mypy_boto3_connectcases-1.35.93}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mypy-boto3-connectcases
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3
|
|
3
|
+
Version: 1.35.93
|
|
4
|
+
Summary: Type annotations for boto3 ConnectCases 1.35.93 service generated with mypy-boto3-builder 8.8.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_connectcases/
|
|
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 connectcases type-annotations
|
|
12
|
+
Keywords: boto3 connectcases 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
|
|
@@ -23,47 +23,49 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
27
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
27
28
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
29
|
Classifier: Typing :: Stubs Only
|
|
29
30
|
Requires-Python: >=3.8
|
|
30
31
|
Description-Content-Type: text/markdown
|
|
31
32
|
License-File: LICENSE
|
|
32
|
-
Requires-Dist: typing-extensions
|
|
33
|
+
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
33
34
|
|
|
34
35
|
<a id="mypy-boto3-connectcases"></a>
|
|
35
36
|
|
|
36
37
|
# mypy-boto3-connectcases
|
|
37
38
|
|
|
38
|
-
[](https://pypi.org/project/mypy-boto3-connectcases)
|
|
39
|
-
[](https://pypi.org/project/mypy-boto3-connectcases)
|
|
40
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
41
|
-
[](https://
|
|
39
|
+
[](https://pypi.org/project/mypy-boto3-connectcases/)
|
|
40
|
+
[](https://pypi.org/project/mypy-boto3-connectcases/)
|
|
41
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
42
|
+
[](https://pypistats.org/packages/mypy-boto3-connectcases)
|
|
42
43
|
|
|
43
44
|

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

|
|
64
65
|
|
|
65
66
|
- [mypy-boto3-connectcases](#mypy-boto3-connectcases)
|
|
66
67
|
- [How to install](#how-to-install)
|
|
68
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
67
69
|
- [VSCode extension](#vscode-extension)
|
|
68
70
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
69
71
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -75,6 +77,7 @@ See how it helps to find and fix potential bugs:
|
|
|
75
77
|
- [Other IDEs](#other-ides)
|
|
76
78
|
- [mypy](#mypy)
|
|
77
79
|
- [pyright](#pyright)
|
|
80
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
78
81
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
79
82
|
- [Client annotations](#client-annotations)
|
|
80
83
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -93,6 +96,21 @@ See how it helps to find and fix potential bugs:
|
|
|
93
96
|
|
|
94
97
|
## How to install
|
|
95
98
|
|
|
99
|
+
<a id="generate-locally-(recommended)"></a>
|
|
100
|
+
|
|
101
|
+
### Generate locally (recommended)
|
|
102
|
+
|
|
103
|
+
You can generate type annotations for `boto3` package locally with
|
|
104
|
+
`mypy_boto3_builder`. Use
|
|
105
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
106
|
+
isolation.
|
|
107
|
+
|
|
108
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
109
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
110
|
+
2. Select `boto3-stubs` AWS SDK.
|
|
111
|
+
3. Add `ConnectCases` service.
|
|
112
|
+
4. Use provided commands to install generated packages.
|
|
113
|
+
|
|
96
114
|
<a id="vscode-extension"></a>
|
|
97
115
|
|
|
98
116
|
### VSCode extension
|
|
@@ -113,12 +131,10 @@ Install `boto3-stubs` for `ConnectCases` service.
|
|
|
113
131
|
# install with boto3 type annotations
|
|
114
132
|
python -m pip install 'boto3-stubs[connectcases]'
|
|
115
133
|
|
|
116
|
-
|
|
117
134
|
# Lite version does not provide session.client/resource overloads
|
|
118
135
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
119
136
|
python -m pip install 'boto3-stubs-lite[connectcases]'
|
|
120
137
|
|
|
121
|
-
|
|
122
138
|
# standalone installation
|
|
123
139
|
python -m pip install mypy-boto3-connectcases
|
|
124
140
|
```
|
|
@@ -157,16 +173,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
157
173
|
|
|
158
174
|
### PyCharm
|
|
159
175
|
|
|
160
|
-
|
|
176
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
177
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
178
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
179
|
+
> the issue is resolved.
|
|
180
|
+
|
|
181
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
182
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
183
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
184
|
+
|
|
185
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
186
|
+
> `boto3-stubs` with
|
|
187
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
161
188
|
|
|
162
189
|
```bash
|
|
163
|
-
|
|
190
|
+
pip uninstall boto3-stubs
|
|
191
|
+
pip install boto3-stubs-lite
|
|
164
192
|
```
|
|
165
193
|
|
|
166
|
-
|
|
167
|
-
annotations **are required**.
|
|
194
|
+
Install `boto3-stubs[connectcases]` in your environment:
|
|
168
195
|
|
|
169
|
-
|
|
196
|
+
```bash
|
|
197
|
+
python -m pip install 'boto3-stubs[connectcases]'
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Both type checking and code completion should now work.
|
|
170
201
|
|
|
171
202
|
<a id="emacs"></a>
|
|
172
203
|
|
|
@@ -231,7 +262,7 @@ should work.
|
|
|
231
262
|
- Install `boto3-stubs[connectcases]` in your environment:
|
|
232
263
|
|
|
233
264
|
```bash
|
|
234
|
-
python -m pip install 'boto3-stubs[connectcases]'
|
|
265
|
+
python -m pip install 'boto3-stubs[connectcases]'
|
|
235
266
|
```
|
|
236
267
|
|
|
237
268
|
Type checking should now work. No explicit type annotations required, write
|
|
@@ -248,11 +279,36 @@ your `boto3` code as usual.
|
|
|
248
279
|
python -m pip install 'boto3-stubs[connectcases]'
|
|
249
280
|
```
|
|
250
281
|
|
|
251
|
-
Optionally, you can install `boto3-stubs` to `typings`
|
|
282
|
+
Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
252
283
|
|
|
253
284
|
Type checking should now work. No explicit type annotations required, write
|
|
254
285
|
your `boto3` code as usual.
|
|
255
286
|
|
|
287
|
+
<a id="pylint-compatibility"></a>
|
|
288
|
+
|
|
289
|
+
### Pylint compatibility
|
|
290
|
+
|
|
291
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
292
|
+
`mypy-boto3-connectcases` dependency in production. However, there is an issue
|
|
293
|
+
in `pylint` that it complains about undefined variables. To fix it, set all
|
|
294
|
+
types to `object` in non-`TYPE_CHECKING` mode.
|
|
295
|
+
|
|
296
|
+
```python
|
|
297
|
+
from typing import TYPE_CHECKING
|
|
298
|
+
|
|
299
|
+
if TYPE_CHECKING:
|
|
300
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
301
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
302
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
303
|
+
else:
|
|
304
|
+
EC2Client = object
|
|
305
|
+
EC2ServiceResource = object
|
|
306
|
+
BundleTaskCompleteWaiter = object
|
|
307
|
+
DescribeVolumesPaginator = object
|
|
308
|
+
|
|
309
|
+
...
|
|
310
|
+
```
|
|
311
|
+
|
|
256
312
|
<a id="explicit-type-annotations"></a>
|
|
257
313
|
|
|
258
314
|
## Explicit type annotations
|
|
@@ -345,8 +401,7 @@ updates. It delivers drop-in type annotations for you and makes sure that:
|
|
|
345
401
|
annotations extracted from `botocore` schemas.
|
|
346
402
|
- Type annotations include up-to-date documentation.
|
|
347
403
|
- Link to documentation is provided for every method.
|
|
348
|
-
- Code is processed by [
|
|
349
|
-
[isort](https://github.com/PyCQA/isort) for readability.
|
|
404
|
+
- Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
|
|
350
405
|
|
|
351
406
|
<a id="what's-new"></a>
|
|
352
407
|
|
|
@@ -2,35 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
# mypy-boto3-connectcases
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/mypy-boto3-connectcases)
|
|
6
|
-
[](https://pypi.org/project/mypy-boto3-connectcases)
|
|
7
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
8
|
-
[](https://
|
|
5
|
+
[](https://pypi.org/project/mypy-boto3-connectcases/)
|
|
6
|
+
[](https://pypi.org/project/mypy-boto3-connectcases/)
|
|
7
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
8
|
+
[](https://pypistats.org/packages/mypy-boto3-connectcases)
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3
|
|
14
|
-
|
|
13
|
+
[boto3 ConnectCases 1.35.93](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/),
|
|
18
18
|
[mypy](https://github.com/python/mypy),
|
|
19
19
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
20
20
|
|
|
21
|
-
Generated
|
|
22
|
-
[mypy-boto3-builder
|
|
21
|
+
Generated with
|
|
22
|
+
[mypy-boto3-builder 8.8.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-connectcases docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_connectcases/).
|
|
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-connectcases](#mypy-boto3-connectcases)
|
|
33
33
|
- [How to install](#how-to-install)
|
|
34
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
34
35
|
- [VSCode extension](#vscode-extension)
|
|
35
36
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
36
37
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -42,6 +43,7 @@ See how it helps to find and fix potential bugs:
|
|
|
42
43
|
- [Other IDEs](#other-ides)
|
|
43
44
|
- [mypy](#mypy)
|
|
44
45
|
- [pyright](#pyright)
|
|
46
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
45
47
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
46
48
|
- [Client annotations](#client-annotations)
|
|
47
49
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -60,6 +62,21 @@ See how it helps to find and fix potential bugs:
|
|
|
60
62
|
|
|
61
63
|
## How to install
|
|
62
64
|
|
|
65
|
+
<a id="generate-locally-(recommended)"></a>
|
|
66
|
+
|
|
67
|
+
### Generate locally (recommended)
|
|
68
|
+
|
|
69
|
+
You can generate type annotations for `boto3` package locally with
|
|
70
|
+
`mypy_boto3_builder`. Use
|
|
71
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
72
|
+
isolation.
|
|
73
|
+
|
|
74
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
75
|
+
`uvx --with 'boto3==1.35.93' mypy_boto3_builder`
|
|
76
|
+
2. Select `boto3-stubs` AWS SDK.
|
|
77
|
+
3. Add `ConnectCases` service.
|
|
78
|
+
4. Use provided commands to install generated packages.
|
|
79
|
+
|
|
63
80
|
<a id="vscode-extension"></a>
|
|
64
81
|
|
|
65
82
|
### VSCode extension
|
|
@@ -80,12 +97,10 @@ Install `boto3-stubs` for `ConnectCases` service.
|
|
|
80
97
|
# install with boto3 type annotations
|
|
81
98
|
python -m pip install 'boto3-stubs[connectcases]'
|
|
82
99
|
|
|
83
|
-
|
|
84
100
|
# Lite version does not provide session.client/resource overloads
|
|
85
101
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
86
102
|
python -m pip install 'boto3-stubs-lite[connectcases]'
|
|
87
103
|
|
|
88
|
-
|
|
89
104
|
# standalone installation
|
|
90
105
|
python -m pip install mypy-boto3-connectcases
|
|
91
106
|
```
|
|
@@ -124,16 +139,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
124
139
|
|
|
125
140
|
### PyCharm
|
|
126
141
|
|
|
127
|
-
|
|
142
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
143
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
144
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
145
|
+
> the issue is resolved.
|
|
146
|
+
|
|
147
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
148
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
149
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
150
|
+
|
|
151
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
152
|
+
> `boto3-stubs` with
|
|
153
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
128
154
|
|
|
129
155
|
```bash
|
|
130
|
-
|
|
156
|
+
pip uninstall boto3-stubs
|
|
157
|
+
pip install boto3-stubs-lite
|
|
131
158
|
```
|
|
132
159
|
|
|
133
|
-
|
|
134
|
-
annotations **are required**.
|
|
160
|
+
Install `boto3-stubs[connectcases]` in your environment:
|
|
135
161
|
|
|
136
|
-
|
|
162
|
+
```bash
|
|
163
|
+
python -m pip install 'boto3-stubs[connectcases]'
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Both type checking and code completion should now work.
|
|
137
167
|
|
|
138
168
|
<a id="emacs"></a>
|
|
139
169
|
|
|
@@ -198,7 +228,7 @@ should work.
|
|
|
198
228
|
- Install `boto3-stubs[connectcases]` in your environment:
|
|
199
229
|
|
|
200
230
|
```bash
|
|
201
|
-
python -m pip install 'boto3-stubs[connectcases]'
|
|
231
|
+
python -m pip install 'boto3-stubs[connectcases]'
|
|
202
232
|
```
|
|
203
233
|
|
|
204
234
|
Type checking should now work. No explicit type annotations required, write
|
|
@@ -215,11 +245,36 @@ your `boto3` code as usual.
|
|
|
215
245
|
python -m pip install 'boto3-stubs[connectcases]'
|
|
216
246
|
```
|
|
217
247
|
|
|
218
|
-
Optionally, you can install `boto3-stubs` to `typings`
|
|
248
|
+
Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
219
249
|
|
|
220
250
|
Type checking should now work. No explicit type annotations required, write
|
|
221
251
|
your `boto3` code as usual.
|
|
222
252
|
|
|
253
|
+
<a id="pylint-compatibility"></a>
|
|
254
|
+
|
|
255
|
+
### Pylint compatibility
|
|
256
|
+
|
|
257
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
258
|
+
`mypy-boto3-connectcases` dependency in production. However, there is an issue
|
|
259
|
+
in `pylint` that it complains about undefined variables. To fix it, set all
|
|
260
|
+
types to `object` in non-`TYPE_CHECKING` mode.
|
|
261
|
+
|
|
262
|
+
```python
|
|
263
|
+
from typing import TYPE_CHECKING
|
|
264
|
+
|
|
265
|
+
if TYPE_CHECKING:
|
|
266
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
267
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
268
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
269
|
+
else:
|
|
270
|
+
EC2Client = object
|
|
271
|
+
EC2ServiceResource = object
|
|
272
|
+
BundleTaskCompleteWaiter = object
|
|
273
|
+
DescribeVolumesPaginator = object
|
|
274
|
+
|
|
275
|
+
...
|
|
276
|
+
```
|
|
277
|
+
|
|
223
278
|
<a id="explicit-type-annotations"></a>
|
|
224
279
|
|
|
225
280
|
## Explicit type annotations
|
|
@@ -312,8 +367,7 @@ updates. It delivers drop-in type annotations for you and makes sure that:
|
|
|
312
367
|
annotations extracted from `botocore` schemas.
|
|
313
368
|
- Type annotations include up-to-date documentation.
|
|
314
369
|
- Link to documentation is provided for every method.
|
|
315
|
-
- Code is processed by [
|
|
316
|
-
[isort](https://github.com/PyCQA/isort) for readability.
|
|
370
|
+
- Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
|
|
317
371
|
|
|
318
372
|
<a id="what's-new"></a>
|
|
319
373
|
|
|
@@ -18,6 +18,8 @@ Usage::
|
|
|
18
18
|
search_cases_paginator: SearchCasesPaginator = client.get_paginator("search_cases")
|
|
19
19
|
search_related_items_paginator: SearchRelatedItemsPaginator = client.get_paginator("search_related_items")
|
|
20
20
|
```
|
|
21
|
+
|
|
22
|
+
Copyright 2025 Vlad Emelianov
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
from .client import ConnectCasesClient
|
|
@@ -25,4 +27,5 @@ from .paginator import SearchCasesPaginator, SearchRelatedItemsPaginator
|
|
|
25
27
|
|
|
26
28
|
Client = ConnectCasesClient
|
|
27
29
|
|
|
30
|
+
|
|
28
31
|
__all__ = ("Client", "ConnectCasesClient", "SearchCasesPaginator", "SearchRelatedItemsPaginator")
|
|
@@ -18,6 +18,8 @@ Usage::
|
|
|
18
18
|
search_cases_paginator: SearchCasesPaginator = client.get_paginator("search_cases")
|
|
19
19
|
search_related_items_paginator: SearchRelatedItemsPaginator = client.get_paginator("search_related_items")
|
|
20
20
|
```
|
|
21
|
+
|
|
22
|
+
Copyright 2025 Vlad Emelianov
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
from .client import ConnectCasesClient
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
|
+
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
3
5
|
"""
|
|
4
6
|
|
|
5
7
|
import sys
|
|
@@ -9,14 +11,14 @@ def print_info() -> None:
|
|
|
9
11
|
"""
|
|
10
12
|
Print package info to stdout.
|
|
11
13
|
"""
|
|
12
|
-
|
|
13
|
-
"Type annotations for boto3
|
|
14
|
-
"Version: 1.35.
|
|
15
|
-
"Builder version:
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for boto3 ConnectCases 1.35.93\n"
|
|
16
|
+
"Version: 1.35.93\n"
|
|
17
|
+
"Builder version: 8.8.0\n"
|
|
16
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_connectcases//\n"
|
|
17
|
-
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connectcases.html#
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connectcases.html#connectcases\n"
|
|
18
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
19
|
-
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
21
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
|
|
20
22
|
)
|
|
21
23
|
|
|
22
24
|
|
|
@@ -24,7 +26,7 @@ def print_version() -> None:
|
|
|
24
26
|
"""
|
|
25
27
|
Print package version to stdout.
|
|
26
28
|
"""
|
|
27
|
-
|
|
29
|
+
sys.stdout.write("1.35.93\n")
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
def main() -> None:
|
|
@@ -32,7 +34,8 @@ def main() -> None:
|
|
|
32
34
|
Main CLI entrypoint.
|
|
33
35
|
"""
|
|
34
36
|
if "--version" in sys.argv:
|
|
35
|
-
|
|
37
|
+
print_version()
|
|
38
|
+
return
|
|
36
39
|
print_info()
|
|
37
40
|
|
|
38
41
|
|