Type annotations for boto3.Support 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-support
Type annotations for boto3.Support 1.13.26 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 Support
service.
python -m pip install boto3-stubs[support]
Use boto3
with mypy_boto3_support
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_support import SupportClient
# Now mypy can check if your code is valid.
client: SupportClient = boto3.client("support")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SupportClient = session.client("support")
# Annotated paginators are included as well
import mypy_boto3_support.paginator as support_paginators
describe_cases_paginator: support_paginators.DescribeCasesPaginator = client.get_paginator("describe_cases")
describe_communications_paginator: support_paginators.DescribeCommunicationsPaginator = client.get_paginator("describe_communications")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_support
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("support")
session_client = boto3.Session().client("support")
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-support-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc688ea5c4244bcf3e4f6ec102d2a516461d826fedc75ad263da43e11bf5adee |
|
MD5 | 5723af8ff9f55dda7bd4cbe806d6938b |
|
BLAKE2b-256 | 5479cddbbeef7c8c5c0c85ffa8e5b85816e963106751730e796bcec2faa1d4ae |
Hashes for mypy_boto3_support-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c587f06a4e025742c8649ed0c93cd6f6565918778bb34a0ed8da11c3dc4f26a |
|
MD5 | 511ead07ee5ba858030a7c410ded7a28 |
|
BLAKE2b-256 | 090a5c98d666e31990bfedf92d2a322c045eb120f3578150bf5aec95b67be633 |