Type annotations for boto3.CognitoSync 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-cognito-sync
Type annotations for boto3.CognitoSync 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 CognitoSync
service.
python -m pip install boto3-stubs[cognito-sync]
Use boto3
with mypy_boto3_cognito_sync
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_cognito_sync import CognitoSyncClient
# Now mypy can check if your code is valid.
client: CognitoSyncClient = boto3.client("cognito-sync")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CognitoSyncClient = session.client("cognito-sync")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_cognito_sync
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-sync")
session_client = boto3.Session().client("cognito-sync")
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-sync-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b494e3e17a701d61351e0ca2ac19edab79f247ef6433e49c2d73454cadd670c7 |
|
MD5 | 07a301969777eddd2ccbca9f4253d045 |
|
BLAKE2b-256 | e8e696ee760dae791f98a327017b33c2a2293fc5110c7885559608d74cef8477 |
Hashes for mypy_boto3_cognito_sync-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd593473e5fc70b124c1660fce81ed107d4f092894590004f55cafde490309bf |
|
MD5 | e0ef42965d59ec1d4c13bfa095f4bf43 |
|
BLAKE2b-256 | 2b89be578bb0913242f4a970818c1000b45df871a25c32050e34a484e6b964f6 |