mypy-boto3-workspaces-web 1.35.23__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.
Files changed (29) hide show
  1. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/LICENSE +1 -1
  2. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/PKG-INFO +84 -22
  3. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/README.md +79 -18
  4. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/__init__.pyi → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/__init__.py +12 -2
  5. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/__init__.py → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/__init__.pyi +11 -3
  6. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/__main__.py +11 -8
  7. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/client.pyi → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/client.py +201 -107
  8. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/client.py → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/client.pyi +199 -112
  9. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/literals.pyi → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/literals.py +34 -8
  10. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/literals.py → mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/literals.pyi +32 -10
  11. mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/paginator.py +89 -0
  12. mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/paginator.pyi +82 -0
  13. mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/type_defs.py +1166 -0
  14. mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/type_defs.pyi +1009 -0
  15. mypy_boto3_workspaces_web-1.35.93/mypy_boto3_workspaces_web/version.py +7 -0
  16. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/PKG-INFO +84 -22
  17. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/requires.txt +1 -1
  18. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/setup.py +7 -6
  19. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/paginator.py +0 -61
  20. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/paginator.pyi +0 -56
  21. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/type_defs.py +0 -1267
  22. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/type_defs.pyi +0 -1266
  23. mypy_boto3_workspaces_web-1.35.23/mypy_boto3_workspaces_web/version.py +0 -5
  24. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web/py.typed +0 -0
  25. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/SOURCES.txt +0 -0
  26. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/dependency_links.txt +0 -0
  27. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/not-zip-safe +0 -0
  28. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/mypy_boto3_workspaces_web.egg-info/top_level.txt +0 -0
  29. {mypy_boto3_workspaces_web-1.35.23 → mypy_boto3_workspaces_web-1.35.93}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Vlad Emelianov
3
+ Copyright (c) 2025 Vlad Emelianov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mypy-boto3-workspaces-web
3
- Version: 1.35.23
4
- Summary: Type annotations for boto3.WorkSpacesWeb 1.35.23 service generated with mypy-boto3-builder 8.1.1
3
+ Version: 1.35.93
4
+ Summary: Type annotations for boto3 WorkSpacesWeb 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_workspaces_web/
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 workspaces-web type-annotations botocore mypy typeshed autocomplete
12
+ Keywords: boto3 workspaces-web 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>=4.1.0; python_version < "3.12"
33
+ Requires-Dist: typing-extensions; python_version < "3.12"
33
34
 
34
35
  <a id="mypy-boto3-workspaces-web"></a>
35
36
 
36
37
  # mypy-boto3-workspaces-web
37
38
 
38
- [![PyPI - mypy-boto3-workspaces-web](https://img.shields.io/pypi/v/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web)
39
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web)
40
- [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/)
41
- [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-workspaces-web)](https://pepy.tech/project/mypy-boto3-workspaces-web)
39
+ [![PyPI - mypy-boto3-workspaces-web](https://img.shields.io/pypi/v/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web/)
40
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web/)
41
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/)
42
+ [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-workspaces-web)](https://pypistats.org/packages/mypy-boto3-workspaces-web)
42
43
 
43
44
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
44
45
 
45
46
  Type annotations for
46
- [boto3.WorkSpacesWeb 1.35.23](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#WorkSpacesWeb)
47
- service compatible with [VSCode](https://code.visualstudio.com/),
47
+ [boto3 WorkSpacesWeb 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 by
55
- [mypy-boto3-builder 8.1.1](https://github.com/youtype/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-workspaces-web docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/).
60
61
 
61
- See how it helps to find and fix potential bugs:
62
+ See how it helps you find and fix potential bugs:
62
63
 
63
- ![boto3-stubs demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
64
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
64
65
 
65
66
  - [mypy-boto3-workspaces-web](#mypy-boto3-workspaces-web)
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 `WorkSpacesWeb` 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 `WorkSpacesWeb` service.
113
131
  # install with boto3 type annotations
114
132
  python -m pip install 'boto3-stubs[workspaces-web]'
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[workspaces-web]'
120
137
 
121
-
122
138
  # standalone installation
123
139
  python -m pip install mypy-boto3-workspaces-web
124
140
  ```
@@ -157,16 +173,31 @@ annotations required, write your `boto3` code as usual.
157
173
 
158
174
  ### PyCharm
159
175
 
160
- Install `boto3-stubs-lite[workspaces-web]` in your environment:
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
- python -m pip install 'boto3-stubs-lite[workspaces-web]'`
190
+ pip uninstall boto3-stubs
191
+ pip install boto3-stubs-lite
164
192
  ```
165
193
 
166
- Both type checking and code completion should now work. Explicit type
167
- annotations **are required**.
194
+ Install `boto3-stubs[workspaces-web]` in your environment:
195
+
196
+ ```bash
197
+ python -m pip install 'boto3-stubs[workspaces-web]'
198
+ ```
168
199
 
169
- Use `boto3-stubs` package instead for implicit type discovery.
200
+ Both type checking and code completion should now work.
170
201
 
171
202
  <a id="emacs"></a>
172
203
 
@@ -253,6 +284,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
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-workspaces-web` dependency in production. However, there is an
293
+ issue in `pylint` that it complains about undefined variables. To fix it, set
294
+ all 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
@@ -285,12 +341,18 @@ paginators.
285
341
  from boto3.session import Session
286
342
 
287
343
  from mypy_boto3_workspaces_web import WorkSpacesWebClient
288
- from mypy_boto3_workspaces_web.paginator import ListSessionsPaginator
344
+ from mypy_boto3_workspaces_web.paginator import (
345
+ ListDataProtectionSettingsPaginator,
346
+ ListSessionsPaginator,
347
+ )
289
348
 
290
349
  client: WorkSpacesWebClient = Session().client("workspaces-web")
291
350
 
292
351
  # Explicit type annotations are optional here
293
352
  # Types should be correctly discovered by mypy and IDEs
353
+ list_data_protection_settings_paginator: ListDataProtectionSettingsPaginator = client.get_paginator(
354
+ "list_data_protection_settings"
355
+ )
294
356
  list_sessions_paginator: ListSessionsPaginator = client.get_paginator("list_sessions")
295
357
  ```
296
358
 
@@ -2,35 +2,36 @@
2
2
 
3
3
  # mypy-boto3-workspaces-web
4
4
 
5
- [![PyPI - mypy-boto3-workspaces-web](https://img.shields.io/pypi/v/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web)
6
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web)
7
- [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/)
8
- [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-workspaces-web)](https://pepy.tech/project/mypy-boto3-workspaces-web)
5
+ [![PyPI - mypy-boto3-workspaces-web](https://img.shields.io/pypi/v/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web/)
6
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-workspaces-web.svg?color=blue)](https://pypi.org/project/mypy-boto3-workspaces-web/)
7
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/)
8
+ [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-workspaces-web)](https://pypistats.org/packages/mypy-boto3-workspaces-web)
9
9
 
10
10
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
11
11
 
12
12
  Type annotations for
13
- [boto3.WorkSpacesWeb 1.35.23](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#WorkSpacesWeb)
14
- service compatible with [VSCode](https://code.visualstudio.com/),
13
+ [boto3 WorkSpacesWeb 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 by
22
- [mypy-boto3-builder 8.1.1](https://github.com/youtype/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-workspaces-web docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_workspaces_web/).
27
27
 
28
- See how it helps to find and fix potential bugs:
28
+ See how it helps you find and fix potential bugs:
29
29
 
30
- ![boto3-stubs demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
30
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
31
31
 
32
32
  - [mypy-boto3-workspaces-web](#mypy-boto3-workspaces-web)
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 `WorkSpacesWeb` 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 `WorkSpacesWeb` service.
80
97
  # install with boto3 type annotations
81
98
  python -m pip install 'boto3-stubs[workspaces-web]'
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[workspaces-web]'
87
103
 
88
-
89
104
  # standalone installation
90
105
  python -m pip install mypy-boto3-workspaces-web
91
106
  ```
@@ -124,16 +139,31 @@ annotations required, write your `boto3` code as usual.
124
139
 
125
140
  ### PyCharm
126
141
 
127
- Install `boto3-stubs-lite[workspaces-web]` in your environment:
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
- python -m pip install 'boto3-stubs-lite[workspaces-web]'`
156
+ pip uninstall boto3-stubs
157
+ pip install boto3-stubs-lite
131
158
  ```
132
159
 
133
- Both type checking and code completion should now work. Explicit type
134
- annotations **are required**.
160
+ Install `boto3-stubs[workspaces-web]` in your environment:
161
+
162
+ ```bash
163
+ python -m pip install 'boto3-stubs[workspaces-web]'
164
+ ```
135
165
 
136
- Use `boto3-stubs` package instead for implicit type discovery.
166
+ Both type checking and code completion should now work.
137
167
 
138
168
  <a id="emacs"></a>
139
169
 
@@ -220,6 +250,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
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-workspaces-web` dependency in production. However, there is an
259
+ issue in `pylint` that it complains about undefined variables. To fix it, set
260
+ all 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
@@ -252,12 +307,18 @@ paginators.
252
307
  from boto3.session import Session
253
308
 
254
309
  from mypy_boto3_workspaces_web import WorkSpacesWebClient
255
- from mypy_boto3_workspaces_web.paginator import ListSessionsPaginator
310
+ from mypy_boto3_workspaces_web.paginator import (
311
+ ListDataProtectionSettingsPaginator,
312
+ ListSessionsPaginator,
313
+ )
256
314
 
257
315
  client: WorkSpacesWebClient = Session().client("workspaces-web")
258
316
 
259
317
  # Explicit type annotations are optional here
260
318
  # Types should be correctly discovered by mypy and IDEs
319
+ list_data_protection_settings_paginator: ListDataProtectionSettingsPaginator = client.get_paginator(
320
+ "list_data_protection_settings"
321
+ )
261
322
  list_sessions_paginator: ListSessionsPaginator = client.get_paginator("list_sessions")
262
323
  ```
263
324
 
@@ -7,6 +7,7 @@ Usage::
7
7
  from boto3.session import Session
8
8
  from mypy_boto3_workspaces_web import (
9
9
  Client,
10
+ ListDataProtectionSettingsPaginator,
10
11
  ListSessionsPaginator,
11
12
  WorkSpacesWebClient,
12
13
  )
@@ -14,13 +15,22 @@ Usage::
14
15
  session = Session()
15
16
  client: WorkSpacesWebClient = session.client("workspaces-web")
16
17
 
18
+ list_data_protection_settings_paginator: ListDataProtectionSettingsPaginator = client.get_paginator("list_data_protection_settings")
17
19
  list_sessions_paginator: ListSessionsPaginator = client.get_paginator("list_sessions")
18
20
  ```
21
+
22
+ Copyright 2025 Vlad Emelianov
19
23
  """
20
24
 
21
25
  from .client import WorkSpacesWebClient
22
- from .paginator import ListSessionsPaginator
26
+ from .paginator import ListDataProtectionSettingsPaginator, ListSessionsPaginator
23
27
 
24
28
  Client = WorkSpacesWebClient
25
29
 
26
- __all__ = ("Client", "ListSessionsPaginator", "WorkSpacesWebClient")
30
+
31
+ __all__ = (
32
+ "Client",
33
+ "ListDataProtectionSettingsPaginator",
34
+ "ListSessionsPaginator",
35
+ "WorkSpacesWebClient",
36
+ )
@@ -7,6 +7,7 @@ Usage::
7
7
  from boto3.session import Session
8
8
  from mypy_boto3_workspaces_web import (
9
9
  Client,
10
+ ListDataProtectionSettingsPaginator,
10
11
  ListSessionsPaginator,
11
12
  WorkSpacesWebClient,
12
13
  )
@@ -14,14 +15,21 @@ Usage::
14
15
  session = Session()
15
16
  client: WorkSpacesWebClient = session.client("workspaces-web")
16
17
 
18
+ list_data_protection_settings_paginator: ListDataProtectionSettingsPaginator = client.get_paginator("list_data_protection_settings")
17
19
  list_sessions_paginator: ListSessionsPaginator = client.get_paginator("list_sessions")
18
20
  ```
21
+
22
+ Copyright 2025 Vlad Emelianov
19
23
  """
20
24
 
21
25
  from .client import WorkSpacesWebClient
22
- from .paginator import ListSessionsPaginator
26
+ from .paginator import ListDataProtectionSettingsPaginator, ListSessionsPaginator
23
27
 
24
28
  Client = WorkSpacesWebClient
25
29
 
26
-
27
- __all__ = ("Client", "ListSessionsPaginator", "WorkSpacesWebClient")
30
+ __all__ = (
31
+ "Client",
32
+ "ListDataProtectionSettingsPaginator",
33
+ "ListSessionsPaginator",
34
+ "WorkSpacesWebClient",
35
+ )
@@ -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
- print(
13
- "Type annotations for boto3.WorkSpacesWeb 1.35.23\n"
14
- "Version: 1.35.23\n"
15
- "Builder version: 8.1.1\n"
14
+ sys.stdout.write(
15
+ "Type annotations for boto3 WorkSpacesWeb 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_workspaces_web//\n"
17
- "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#WorkSpacesWeb\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/workspaces-web.html#workspacesweb\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
- print("1.35.23")
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
- return print_version()
37
+ print_version()
38
+ return
36
39
  print_info()
37
40
 
38
41