Type annotations for boto3.CognitoIdentity 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-cognito-identity
Type annotations for boto3.CognitoIdentity 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 CognitoIdentity
service.
python -m pip install boto3-stubs[cognito-identity]
Use boto3
with mypy_boto3_cognito_identity
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_cognito_identity import CognitoIdentityClient
# Now mypy can check if your code is valid.
client: CognitoIdentityClient = boto3.client("cognito-identity")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CognitoIdentityClient = session.client("cognito-identity")
# Annotated paginators are included as well
import mypy_boto3_cognito_identity.paginator as cognito_identity_paginators
list_identity_pools_paginator: cognito_identity_paginators.ListIdentityPoolsPaginator = client.get_paginator("list_identity_pools")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_cognito_identity
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("cognito-identity")
session_client = boto3.Session().client("cognito-identity")
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-cognito-identity-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef442948d2c932e63192aeb63e4af27ad7553efa9fd068f9bc979cc0cc5147b |
|
MD5 | 8802d548d7573b8cbc2053e189b3f4ce |
|
BLAKE2b-256 | e1f5a797c41971032d556ee4d171b1a8690f4666781fdb30c2cf3e54b22521f6 |
Hashes for mypy_boto3_cognito_identity-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aefd05f016c443651fcdb51c4a61a66d4a3bfbb6020f0cc8f7b4ee2a7083ce1 |
|
MD5 | ffcfbdc80a6121fee65358424d65e7fd |
|
BLAKE2b-256 | 70a814e809a605d7763139e4ce52acb0941baa727e8b642a34505a66a1bcb056 |