mypy-boto3-geo-maps 1.35.52__tar.gz → 1.36.0__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_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/LICENSE +1 -1
- {mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps.egg-info → mypy_boto3_geo_maps-1.36.0}/PKG-INFO +90 -22
- mypy_boto3_geo_maps-1.35.52/PKG-INFO → mypy_boto3_geo_maps-1.36.0/README.md +72 -50
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/__init__.pyi → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/__init__.py +3 -0
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/__init__.py → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/__init__.pyi +2 -1
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps/__main__.py +11 -8
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/client.pyi → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/client.py +25 -30
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/client.py → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/client.pyi +23 -35
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/literals.pyi → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/literals.py +23 -6
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/literals.py → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/literals.pyi +21 -8
- mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/type_defs.py +141 -0
- mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/type_defs.pyi +129 -0
- mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps/version.py +7 -0
- mypy_boto3_geo_maps-1.35.52/README.md → mypy_boto3_geo_maps-1.36.0/mypy_boto3_geo_maps.egg-info/PKG-INFO +118 -17
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps.egg-info/requires.txt +1 -1
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/setup.py +7 -6
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/type_defs.py +0 -157
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/type_defs.pyi +0 -156
- mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps/version.py +0 -5
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps/py.typed +0 -0
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps.egg-info/SOURCES.txt +0 -0
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps.egg-info/not-zip-safe +0 -0
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/mypy_boto3_geo_maps.egg-info/top_level.txt +0 -0
- {mypy_boto3_geo_maps-1.35.52 → mypy_boto3_geo_maps-1.36.0}/setup.cfg +0 -0
{mypy_boto3_geo_maps-1.35.52/mypy_boto3_geo_maps.egg-info → mypy_boto3_geo_maps-1.36.0}/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: mypy-boto3-geo-maps
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3
|
|
3
|
+
Version: 1.36.0
|
|
4
|
+
Summary: Type annotations for boto3 LocationServiceMapsV2 1.36.0 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_geo_maps/
|
|
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 geo-maps type-annotations
|
|
12
|
+
Keywords: boto3 geo-maps 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,61 @@ 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"
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: keywords
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: project-url
|
|
43
|
+
Dynamic: requires-dist
|
|
44
|
+
Dynamic: requires-python
|
|
45
|
+
Dynamic: summary
|
|
33
46
|
|
|
34
47
|
<a id="mypy-boto3-geo-maps"></a>
|
|
35
48
|
|
|
36
49
|
# mypy-boto3-geo-maps
|
|
37
50
|
|
|
38
|
-
[](https://pypi.org/project/mypy-boto3-geo-maps)
|
|
39
|
-
[](https://pypi.org/project/mypy-boto3-geo-maps)
|
|
40
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
41
|
-
[](https://
|
|
51
|
+
[](https://pypi.org/project/mypy-boto3-geo-maps/)
|
|
52
|
+
[](https://pypi.org/project/mypy-boto3-geo-maps/)
|
|
53
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
54
|
+
[](https://pypistats.org/packages/mypy-boto3-geo-maps)
|
|
42
55
|
|
|
43
56
|

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

|
|
64
77
|
|
|
65
78
|
- [mypy-boto3-geo-maps](#mypy-boto3-geo-maps)
|
|
66
79
|
- [How to install](#how-to-install)
|
|
80
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
67
81
|
- [VSCode extension](#vscode-extension)
|
|
68
82
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
69
83
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -75,6 +89,7 @@ See how it helps to find and fix potential bugs:
|
|
|
75
89
|
- [Other IDEs](#other-ides)
|
|
76
90
|
- [mypy](#mypy)
|
|
77
91
|
- [pyright](#pyright)
|
|
92
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
78
93
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
79
94
|
- [Client annotations](#client-annotations)
|
|
80
95
|
- [Literals](#literals)
|
|
@@ -92,6 +107,21 @@ See how it helps to find and fix potential bugs:
|
|
|
92
107
|
|
|
93
108
|
## How to install
|
|
94
109
|
|
|
110
|
+
<a id="generate-locally-(recommended)"></a>
|
|
111
|
+
|
|
112
|
+
### Generate locally (recommended)
|
|
113
|
+
|
|
114
|
+
You can generate type annotations for `boto3` package locally with
|
|
115
|
+
`mypy_boto3_builder`. Use
|
|
116
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
117
|
+
isolation.
|
|
118
|
+
|
|
119
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
120
|
+
`uvx --with 'boto3==1.36.0' mypy_boto3_builder`
|
|
121
|
+
2. Select `boto3-stubs` AWS SDK.
|
|
122
|
+
3. Add `LocationServiceMapsV2` service.
|
|
123
|
+
4. Use provided commands to install generated packages.
|
|
124
|
+
|
|
95
125
|
<a id="vscode-extension"></a>
|
|
96
126
|
|
|
97
127
|
### VSCode extension
|
|
@@ -112,12 +142,10 @@ Install `boto3-stubs` for `LocationServiceMapsV2` service.
|
|
|
112
142
|
# install with boto3 type annotations
|
|
113
143
|
python -m pip install 'boto3-stubs[geo-maps]'
|
|
114
144
|
|
|
115
|
-
|
|
116
145
|
# Lite version does not provide session.client/resource overloads
|
|
117
146
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
118
147
|
python -m pip install 'boto3-stubs-lite[geo-maps]'
|
|
119
148
|
|
|
120
|
-
|
|
121
149
|
# standalone installation
|
|
122
150
|
python -m pip install mypy-boto3-geo-maps
|
|
123
151
|
```
|
|
@@ -156,16 +184,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
156
184
|
|
|
157
185
|
### PyCharm
|
|
158
186
|
|
|
159
|
-
|
|
187
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
188
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
189
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
190
|
+
> the issue is resolved.
|
|
191
|
+
|
|
192
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
193
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
194
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
195
|
+
|
|
196
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
197
|
+
> `boto3-stubs` with
|
|
198
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
160
199
|
|
|
161
200
|
```bash
|
|
162
|
-
|
|
201
|
+
pip uninstall boto3-stubs
|
|
202
|
+
pip install boto3-stubs-lite
|
|
163
203
|
```
|
|
164
204
|
|
|
165
|
-
|
|
166
|
-
annotations **are required**.
|
|
205
|
+
Install `boto3-stubs[geo-maps]` in your environment:
|
|
167
206
|
|
|
168
|
-
|
|
207
|
+
```bash
|
|
208
|
+
python -m pip install 'boto3-stubs[geo-maps]'
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Both type checking and code completion should now work.
|
|
169
212
|
|
|
170
213
|
<a id="emacs"></a>
|
|
171
214
|
|
|
@@ -251,6 +294,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
251
294
|
Type checking should now work. No explicit type annotations required, write
|
|
252
295
|
your `boto3` code as usual.
|
|
253
296
|
|
|
297
|
+
<a id="pylint-compatibility"></a>
|
|
298
|
+
|
|
299
|
+
### Pylint compatibility
|
|
300
|
+
|
|
301
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
302
|
+
`mypy-boto3-geo-maps` dependency in production. However, there is an issue in
|
|
303
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
304
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
305
|
+
|
|
306
|
+
```python
|
|
307
|
+
from typing import TYPE_CHECKING
|
|
308
|
+
|
|
309
|
+
if TYPE_CHECKING:
|
|
310
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
311
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
312
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
313
|
+
else:
|
|
314
|
+
EC2Client = object
|
|
315
|
+
EC2ServiceResource = object
|
|
316
|
+
BundleTaskCompleteWaiter = object
|
|
317
|
+
DescribeVolumesPaginator = object
|
|
318
|
+
|
|
319
|
+
...
|
|
320
|
+
```
|
|
321
|
+
|
|
254
322
|
<a id="explicit-type-annotations"></a>
|
|
255
323
|
|
|
256
324
|
## Explicit type annotations
|
|
@@ -1,69 +1,37 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: mypy-boto3-geo-maps
|
|
3
|
-
Version: 1.35.52
|
|
4
|
-
Summary: Type annotations for boto3.LocationServiceMapsV2 1.35.52 service generated with mypy-boto3-builder 8.1.4
|
|
5
|
-
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
|
-
Author: Vlad Emelianov
|
|
7
|
-
Author-email: vlad.emelianov.nz@gmail.com
|
|
8
|
-
License: MIT License
|
|
9
|
-
Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/
|
|
10
|
-
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
|
-
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3 geo-maps type-annotations botocore mypy typeshed autocomplete
|
|
13
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: Environment :: Console
|
|
16
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
-
Classifier: Natural Language :: English
|
|
18
|
-
Classifier: Operating System :: OS Independent
|
|
19
|
-
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
27
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
-
Classifier: Typing :: Stubs Only
|
|
29
|
-
Requires-Python: >=3.8
|
|
30
|
-
Description-Content-Type: text/markdown
|
|
31
|
-
License-File: LICENSE
|
|
32
|
-
Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
33
|
-
|
|
34
1
|
<a id="mypy-boto3-geo-maps"></a>
|
|
35
2
|
|
|
36
3
|
# mypy-boto3-geo-maps
|
|
37
4
|
|
|
38
|
-
[](https://pypi.org/project/mypy-boto3-geo-maps)
|
|
39
|
-
[](https://pypi.org/project/mypy-boto3-geo-maps)
|
|
40
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
41
|
-
[](https://
|
|
5
|
+
[](https://pypi.org/project/mypy-boto3-geo-maps/)
|
|
6
|
+
[](https://pypi.org/project/mypy-boto3-geo-maps/)
|
|
7
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
8
|
+
[](https://pypistats.org/packages/mypy-boto3-geo-maps)
|
|
42
9
|
|
|
43
10
|

|
|
44
11
|
|
|
45
12
|
Type annotations for
|
|
46
|
-
[boto3
|
|
47
|
-
|
|
13
|
+
[boto3 LocationServiceMapsV2 1.36.0](https://pypi.org/project/boto3/)
|
|
14
|
+
compatible with [VSCode](https://code.visualstudio.com/),
|
|
48
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
49
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
50
17
|
[Sublime Text](https://www.sublimetext.com/),
|
|
51
18
|
[mypy](https://github.com/python/mypy),
|
|
52
19
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
53
20
|
|
|
54
|
-
Generated
|
|
55
|
-
[mypy-boto3-builder 8.
|
|
21
|
+
Generated with
|
|
22
|
+
[mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
|
|
56
23
|
|
|
57
24
|
More information can be found on
|
|
58
25
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
59
26
|
[mypy-boto3-geo-maps docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/).
|
|
60
27
|
|
|
61
|
-
See how it helps
|
|
28
|
+
See how it helps you find and fix potential bugs:
|
|
62
29
|
|
|
63
|
-

|
|
64
31
|
|
|
65
32
|
- [mypy-boto3-geo-maps](#mypy-boto3-geo-maps)
|
|
66
33
|
- [How to install](#how-to-install)
|
|
34
|
+
- [Generate locally (recommended)](<#generate-locally-(recommended)>)
|
|
67
35
|
- [VSCode extension](#vscode-extension)
|
|
68
36
|
- [From PyPI with pip](#from-pypi-with-pip)
|
|
69
37
|
- [How to uninstall](#how-to-uninstall)
|
|
@@ -75,6 +43,7 @@ See how it helps to find and fix potential bugs:
|
|
|
75
43
|
- [Other IDEs](#other-ides)
|
|
76
44
|
- [mypy](#mypy)
|
|
77
45
|
- [pyright](#pyright)
|
|
46
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
78
47
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
79
48
|
- [Client annotations](#client-annotations)
|
|
80
49
|
- [Literals](#literals)
|
|
@@ -92,6 +61,21 @@ See how it helps to find and fix potential bugs:
|
|
|
92
61
|
|
|
93
62
|
## How to install
|
|
94
63
|
|
|
64
|
+
<a id="generate-locally-(recommended)"></a>
|
|
65
|
+
|
|
66
|
+
### Generate locally (recommended)
|
|
67
|
+
|
|
68
|
+
You can generate type annotations for `boto3` package locally with
|
|
69
|
+
`mypy_boto3_builder`. Use
|
|
70
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
71
|
+
isolation.
|
|
72
|
+
|
|
73
|
+
1. Run mypy-boto3-builder in your package root directory:
|
|
74
|
+
`uvx --with 'boto3==1.36.0' mypy_boto3_builder`
|
|
75
|
+
2. Select `boto3-stubs` AWS SDK.
|
|
76
|
+
3. Add `LocationServiceMapsV2` service.
|
|
77
|
+
4. Use provided commands to install generated packages.
|
|
78
|
+
|
|
95
79
|
<a id="vscode-extension"></a>
|
|
96
80
|
|
|
97
81
|
### VSCode extension
|
|
@@ -112,12 +96,10 @@ Install `boto3-stubs` for `LocationServiceMapsV2` service.
|
|
|
112
96
|
# install with boto3 type annotations
|
|
113
97
|
python -m pip install 'boto3-stubs[geo-maps]'
|
|
114
98
|
|
|
115
|
-
|
|
116
99
|
# Lite version does not provide session.client/resource overloads
|
|
117
100
|
# it is more RAM-friendly, but requires explicit type annotations
|
|
118
101
|
python -m pip install 'boto3-stubs-lite[geo-maps]'
|
|
119
102
|
|
|
120
|
-
|
|
121
103
|
# standalone installation
|
|
122
104
|
python -m pip install mypy-boto3-geo-maps
|
|
123
105
|
```
|
|
@@ -156,16 +138,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
156
138
|
|
|
157
139
|
### PyCharm
|
|
158
140
|
|
|
159
|
-
|
|
141
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
142
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
143
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
144
|
+
> the issue is resolved.
|
|
145
|
+
|
|
146
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
147
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
148
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
149
|
+
|
|
150
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
151
|
+
> `boto3-stubs` with
|
|
152
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
160
153
|
|
|
161
154
|
```bash
|
|
162
|
-
|
|
155
|
+
pip uninstall boto3-stubs
|
|
156
|
+
pip install boto3-stubs-lite
|
|
163
157
|
```
|
|
164
158
|
|
|
165
|
-
|
|
166
|
-
annotations **are required**.
|
|
159
|
+
Install `boto3-stubs[geo-maps]` in your environment:
|
|
167
160
|
|
|
168
|
-
|
|
161
|
+
```bash
|
|
162
|
+
python -m pip install 'boto3-stubs[geo-maps]'
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Both type checking and code completion should now work.
|
|
169
166
|
|
|
170
167
|
<a id="emacs"></a>
|
|
171
168
|
|
|
@@ -251,6 +248,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
251
248
|
Type checking should now work. No explicit type annotations required, write
|
|
252
249
|
your `boto3` code as usual.
|
|
253
250
|
|
|
251
|
+
<a id="pylint-compatibility"></a>
|
|
252
|
+
|
|
253
|
+
### Pylint compatibility
|
|
254
|
+
|
|
255
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
256
|
+
`mypy-boto3-geo-maps` dependency in production. However, there is an issue in
|
|
257
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
258
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
from typing import TYPE_CHECKING
|
|
262
|
+
|
|
263
|
+
if TYPE_CHECKING:
|
|
264
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
265
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
266
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
267
|
+
else:
|
|
268
|
+
EC2Client = object
|
|
269
|
+
EC2ServiceResource = object
|
|
270
|
+
BundleTaskCompleteWaiter = object
|
|
271
|
+
DescribeVolumesPaginator = object
|
|
272
|
+
|
|
273
|
+
...
|
|
274
|
+
```
|
|
275
|
+
|
|
254
276
|
<a id="explicit-type-annotations"></a>
|
|
255
277
|
|
|
256
278
|
## Explicit type annotations
|
|
@@ -13,10 +13,13 @@ Usage::
|
|
|
13
13
|
session = Session()
|
|
14
14
|
client: LocationServiceMapsV2Client = session.client("geo-maps")
|
|
15
15
|
```
|
|
16
|
+
|
|
17
|
+
Copyright 2025 Vlad Emelianov
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
20
|
from .client import LocationServiceMapsV2Client
|
|
19
21
|
|
|
20
22
|
Client = LocationServiceMapsV2Client
|
|
21
23
|
|
|
24
|
+
|
|
22
25
|
__all__ = ("Client", "LocationServiceMapsV2Client")
|
|
@@ -13,11 +13,12 @@ Usage::
|
|
|
13
13
|
session = Session()
|
|
14
14
|
client: LocationServiceMapsV2Client = session.client("geo-maps")
|
|
15
15
|
```
|
|
16
|
+
|
|
17
|
+
Copyright 2025 Vlad Emelianov
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
20
|
from .client import LocationServiceMapsV2Client
|
|
19
21
|
|
|
20
22
|
Client = LocationServiceMapsV2Client
|
|
21
23
|
|
|
22
|
-
|
|
23
24
|
__all__ = ("Client", "LocationServiceMapsV2Client")
|
|
@@ -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.
|
|
15
|
-
"Builder version: 8.
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for boto3 LocationServiceMapsV2 1.36.0\n"
|
|
16
|
+
"Version: 1.36.0\n"
|
|
17
|
+
"Builder version: 8.8.0\n"
|
|
16
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps//\n"
|
|
17
|
-
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#locationservicemapsv2\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.36.0\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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Type annotations for geo-maps service
|
|
2
|
+
Type annotations for geo-maps service Client.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/)
|
|
5
5
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
@@ -12,12 +12,18 @@ Usage::
|
|
|
12
12
|
session = Session()
|
|
13
13
|
client: LocationServiceMapsV2Client = session.client("geo-maps")
|
|
14
14
|
```
|
|
15
|
+
|
|
16
|
+
Copyright 2025 Vlad Emelianov
|
|
15
17
|
"""
|
|
16
18
|
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
17
21
|
import sys
|
|
18
|
-
from typing import Any
|
|
22
|
+
from typing import Any
|
|
19
23
|
|
|
20
24
|
from botocore.client import BaseClient, ClientMeta
|
|
25
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
26
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
21
27
|
|
|
22
28
|
from .type_defs import (
|
|
23
29
|
GetGlyphsRequestRequestTypeDef,
|
|
@@ -32,27 +38,28 @@ from .type_defs import (
|
|
|
32
38
|
GetTileResponseTypeDef,
|
|
33
39
|
)
|
|
34
40
|
|
|
41
|
+
if sys.version_info >= (3, 9):
|
|
42
|
+
from builtins import type as Type
|
|
43
|
+
from collections.abc import Mapping
|
|
44
|
+
else:
|
|
45
|
+
from typing import Mapping, Type
|
|
35
46
|
if sys.version_info >= (3, 12):
|
|
36
47
|
from typing import Unpack
|
|
37
48
|
else:
|
|
38
49
|
from typing_extensions import Unpack
|
|
39
50
|
|
|
40
|
-
__all__ = ("LocationServiceMapsV2Client",)
|
|
41
51
|
|
|
42
|
-
|
|
43
|
-
MSG_TEMPLATE: str
|
|
52
|
+
__all__ = ("LocationServiceMapsV2Client",)
|
|
44
53
|
|
|
45
|
-
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
46
|
-
self.response: Dict[str, Any]
|
|
47
|
-
self.operation_name: str
|
|
48
54
|
|
|
49
|
-
class Exceptions:
|
|
55
|
+
class Exceptions(BaseClientExceptions):
|
|
50
56
|
AccessDeniedException: Type[BotocoreClientError]
|
|
51
57
|
ClientError: Type[BotocoreClientError]
|
|
52
58
|
InternalServerException: Type[BotocoreClientError]
|
|
53
59
|
ThrottlingException: Type[BotocoreClientError]
|
|
54
60
|
ValidationException: Type[BotocoreClientError]
|
|
55
61
|
|
|
62
|
+
|
|
56
63
|
class LocationServiceMapsV2Client(BaseClient):
|
|
57
64
|
"""
|
|
58
65
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client)
|
|
@@ -66,26 +73,16 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
66
73
|
"""
|
|
67
74
|
LocationServiceMapsV2Client exceptions.
|
|
68
75
|
|
|
69
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client
|
|
76
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client)
|
|
70
77
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#exceptions)
|
|
71
78
|
"""
|
|
72
79
|
|
|
73
80
|
def can_paginate(self, operation_name: str) -> bool:
|
|
74
81
|
"""
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client.can_paginate)
|
|
82
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/can_paginate.html)
|
|
78
83
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#can_paginate)
|
|
79
84
|
"""
|
|
80
85
|
|
|
81
|
-
def close(self) -> None:
|
|
82
|
-
"""
|
|
83
|
-
Closes underlying endpoint connections.
|
|
84
|
-
|
|
85
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client.close)
|
|
86
|
-
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#close)
|
|
87
|
-
"""
|
|
88
|
-
|
|
89
86
|
def generate_presigned_url(
|
|
90
87
|
self,
|
|
91
88
|
ClientMethod: str,
|
|
@@ -94,9 +91,7 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
94
91
|
HttpMethod: str = ...,
|
|
95
92
|
) -> str:
|
|
96
93
|
"""
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html#LocationServiceMapsV2.Client.generate_presigned_url)
|
|
94
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/generate_presigned_url.html)
|
|
100
95
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#generate_presigned_url)
|
|
101
96
|
"""
|
|
102
97
|
|
|
@@ -106,7 +101,7 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
106
101
|
"""
|
|
107
102
|
Returns the map's glyphs.
|
|
108
103
|
|
|
109
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html
|
|
104
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/get_glyphs.html)
|
|
110
105
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#get_glyphs)
|
|
111
106
|
"""
|
|
112
107
|
|
|
@@ -116,7 +111,7 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
116
111
|
"""
|
|
117
112
|
Returns the map's sprites.
|
|
118
113
|
|
|
119
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html
|
|
114
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/get_sprites.html)
|
|
120
115
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#get_sprites)
|
|
121
116
|
"""
|
|
122
117
|
|
|
@@ -126,7 +121,7 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
126
121
|
"""
|
|
127
122
|
Provides high-quality static map images with customizable options.
|
|
128
123
|
|
|
129
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html
|
|
124
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/get_static_map.html)
|
|
130
125
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#get_static_map)
|
|
131
126
|
"""
|
|
132
127
|
|
|
@@ -136,7 +131,7 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
136
131
|
"""
|
|
137
132
|
Returns information about the style.
|
|
138
133
|
|
|
139
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html
|
|
134
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/get_style_descriptor.html)
|
|
140
135
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#get_style_descriptor)
|
|
141
136
|
"""
|
|
142
137
|
|
|
@@ -144,6 +139,6 @@ class LocationServiceMapsV2Client(BaseClient):
|
|
|
144
139
|
"""
|
|
145
140
|
Returns a tile.
|
|
146
141
|
|
|
147
|
-
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps.html
|
|
142
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-maps/client/get_tile.html)
|
|
148
143
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_geo_maps/client/#get_tile)
|
|
149
144
|
"""
|