Type annotations for boto3.Polly 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-polly
Type annotations for boto3.Polly 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 Polly
service.
python -m pip install boto3-stubs[polly]
Use boto3
with mypy_boto3_polly
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_polly import PollyClient
# Now mypy can check if your code is valid.
client: PollyClient = boto3.client("polly")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: PollyClient = session.client("polly")
# Annotated paginators are included as well
import mypy_boto3_polly.paginator as polly_paginators
describe_voices_paginator: polly_paginators.DescribeVoicesPaginator = client.get_paginator("describe_voices")
list_lexicons_paginator: polly_paginators.ListLexiconsPaginator = client.get_paginator("list_lexicons")
list_speech_synthesis_tasks_paginator: polly_paginators.ListSpeechSynthesisTasksPaginator = client.get_paginator("list_speech_synthesis_tasks")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_polly
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("polly")
session_client = boto3.Session().client("polly")
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-polly-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360ed4449832a377b8e15ae89d602323c58b9695b09fbf08d49131a7086e3953 |
|
MD5 | 7f50a0a7ef6030669803ac0a31b4bc3d |
|
BLAKE2b-256 | 7feb11b6528857c68f10d73752ba3bfe67fb8d44417da972efd213cd2ad72685 |
Hashes for mypy_boto3_polly-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f356c93884e70403b28e3cf317a4dbd9c6f530ec492931556ac9854b8eeb8d |
|
MD5 | 57e66f1d3858d1440db7f9f82d3a0250 |
|
BLAKE2b-256 | 21836191c082c840d54ee0a3fda38dd58f78333697a6b7eafd45d0147900a4d1 |