Type annotations for boto3.Imagebuilder 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-imagebuilder
Type annotations for boto3.Imagebuilder 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Imagebuilder
service.
python -m pip install boto3-stubs[imagebuilder]
Use boto3
with mypy_boto3_imagebuilder
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_imagebuilder import ImagebuilderClient
# Now mypy can check if your code is valid.
client: ImagebuilderClient = boto3.client("imagebuilder")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ImagebuilderClient = session.client("imagebuilder")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_imagebuilder
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("imagebuilder")
session_client = boto3.Session().client("imagebuilder")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-imagebuilder-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a7f66cca92315a45d854cfff73b9b879927beb9275677ddf861e86a69ec3d8f |
|
MD5 | 0a21f2115685a2991700fd92b2c87cb3 |
|
BLAKE2b-256 | 75428ea16db3d8e46bcb8ded2835cebfdab3f7ebff747df504ae8d9f4fc7dc2d |
Hashes for mypy_boto3_imagebuilder-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adafaed82623ab0990e007cba2feeb5c943b204e3d972b978c3d58b0cec44959 |
|
MD5 | 4f093f278a4c56cb7e093b3da4d62df8 |
|
BLAKE2b-256 | e7dc8e6e8e90cb2a88db4056e43c38508937342084948158f77388f95a3cf263 |