Type annotations for boto3.Support 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.2.
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583af8b4a3e250c01710f45911774bc4cc978c1b2d46da933906030b5c88de86 |
|
MD5 | 4c7d864ae33d0e1c83b3527967c642db |
|
BLAKE2b-256 | 4583941ccbdab01eebc304d43f42ff756fcab12f2f939723908824134609141e |
Hashes for mypy_boto3_support-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c26877fe7915b5f85e83097bfbf7f095da5b34066e60fbfa927eafd7cbd4346 |
|
MD5 | d3216e077151d0c02ad81faa5fb49d12 |
|
BLAKE2b-256 | 76c043558241054ba25bd612e143431bd98d659e7147c324bd039d459cec73aa |