# mypy-boto3-cognito-identity
Type annotations for
[boto3.CognitoIdentity 1.11.2](https://boto3.amazonaws.com/v1/documentation/api/1.11.2/reference/services/cognito-identity.html#CognitoIdentity) service
compatible with [mypy](https://github.com/python/mypy), [VSCode](https://code.visualstudio.com/),
[PyCharm](https://www.jetbrains.com/pycharm/) and other tools.
More information can be found [here](https://vemel.github.io/mypy_boto3/).
- [mypy-boto3-cognito-identity](#mypy-boto3-cognito-identity)
- [How to use](#how-to-use)
- [Type checking](#type-checking)
- [Code auto-complete](#code-auto-complete)
- [How it works](#how-it-works)
## How to use
### Type checking
Make sure you have [mypy](https://github.com/python/mypy) installed and activated in your IDE.
Install `boto3-stubs` for `CognitoIdentity` service.
```bash
python -m pip install boto3-stubs[mypy-boto3-cognito-identity]
```
Use `boto3` with `mypy_boto3` in your project and enjoy type checking and auto-complete.
```python
import boto3
from mypy_boto3 import cognito_identity
# alternative import if you do not want to install mypy_boto3 package
# import mypy_boto3_cognito_identity as cognito_identity
# Use this client as usual, now mypy can check if your code is valid.
# Check if your IDE supports function overloads,
# you probably do not need explicit type annotations
# client = boto3.client("cognito-identity")
client: cognito_identity.CognitoIdentityClient = boto3.client("cognito-identity")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: cognito_identity.CognitoIdentityClient = session.client("cognito-identity")
# Paginators need type annotation on creation
list_identity_pools_paginator: cognito_identity.ListIdentityPoolsPaginator = client.get_paginator("list_identity_pools")
```
## How it works
Fully automated [builder](https://github.com/vemel/mypy_boto3) carefully generates
type annotations for each service, patiently waiting for `boto3` updates. It delivers
a drop-in type annotations for you and makes sure that:
- All available `boto3` services are covered.
- Each public class and method of every `boto3` service gets valid type annotations
extracted from the documentation (blame `botocore` docs if types are incorrect).
- Type annotations include up-to-date documentation.
- Link to documentation is provided for every method.
- Code is processed by [black](https://github.com/psf/black) for readability.
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- 猪行为自动化视频分析技术在群体水平高度关联于人工观测的行为活动-畜牧业动物福利监测新方法
- JAVA求链表长度的递归方法,这个想法是通过维护一个函数来使用递归
- 生成二维码.html
- comsol裂隙注浆模拟,案例 考虑三层顶板包含随机裂隙的浆液扩散模型,考虑浆液重力的影响,建立随机裂隙,采用达西定律模块,分析不同注浆压力条件下的浆液扩散规律,建立瞬态模型 可以明显看到随着时间变
- JAVA源码+SpringBoot+vue+mysql 大学城水电管理系统 +数据库+文档
- 、comsol中相场方法模拟多孔介质中驱替的计算案例 提供采用相场方法模拟多孔介质中驱替的算例,可在此基础上学会多孔介质中的驱替模拟,得到水驱油(或其他两相)后多孔介质中的残余油分布,计算采出程度随时
- 基于椭圆拟合的粘连仔猪灰度图像自动分割算法及应用(用于仔猪体重监测系统)
- EV录屏是一款集视频录制与直播功能于一身的桌面录屏软件,支持多种录制模式
- Java install
- JAVA源码+SpringBoot+vue+mysql 体育馆管理系统 +数据库+文档
- 多孔介质多相流,水驱油模型,达西两相流模型comsol
- 新能源汽车 电力系统 优化 基于粒子群算法的电动汽车群有序充电优化 设计简介:解决与电动汽车充电站的电力分配相关的问题 通过使用粒子群优化(PSO)算法,为电动汽车充电站找到最优的充电策略,以最小化
- 小零件打包机捆包机sw18可编辑全套技术资料100%好用.zip
- JAVA源码+SpringBoot+vue+mysql 健身房管理系统 +数据库+文档
- C# 自定义控件 opencvsharp 卡尺测距
- 电驱动(电机+电控)开发验证方法与技巧讲授 精讲 细讲 教程,高清视频课程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0