Type annotations for boto3.CognitoIdentity 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-cognito-identity
Type annotations for boto3.CognitoIdentity 1.14.0 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207f5130c8d0c16b8e854c77a7988dcc6cd283a47ca045f2444302e4cf450bde |
|
MD5 | 113d4dfe8304742e0a4396fd935e62c6 |
|
BLAKE2b-256 | eaabf8a605b9362dd2ee1e892bb93ae93b12171965225fa469da4634f14dd02f |
Hashes for mypy_boto3_cognito_identity-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f050fbd5757ca529355db2404f7f13bb237d6deefa5c226e76672730bc57eede |
|
MD5 | 012b3fc2b1d4ebf9a5aad82b7e3af61f |
|
BLAKE2b-256 | 843b8635f695e985295d903572131907b54617359f8d3b524fd3761dd3178591 |