Type annotations for boto3.Support 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.3.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_support
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_support as support
from mypy_boto3_support import SupportClient
# with these
from mypy_boto3 import support
from mypy_boto3.support import SupportClient
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5418018ea06ccfed05099f01f695cf065f6486ffe1f9fcd9b630dd47d1737b5f |
|
MD5 | 02ff44638a1da7a044f34351261a838f |
|
BLAKE2b-256 | c1eb301a8a7e39ca2e4e6f065cb2503ae1ee8d7488cebde2101d0f626d8ea241 |
Hashes for mypy_boto3_support-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4064f117fb02753a9277c056afd78998a403dac571a205d8b32f754666867e48 |
|
MD5 | e5563ff43f9354837951c2cfcde77b24 |
|
BLAKE2b-256 | d0f65b2091a6a010577e3ea61cdbb15838a1bf5e3e7c324542b08bdebeaedb2f |