Type annotations for boto3.IoT1ClickDevicesService 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-iot1click-devices
Type annotations for boto3.IoT1ClickDevicesService 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 IoT1ClickDevicesService
service.
python -m pip install boto3-stubs[iot1click-devices]
Use boto3
with mypy_boto3_iot1click_devices
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_iot1click_devices import IoT1ClickDevicesServiceClient
# Now mypy can check if your code is valid.
client: IoT1ClickDevicesServiceClient = boto3.client("iot1click-devices")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoT1ClickDevicesServiceClient = session.client("iot1click-devices")
# Annotated paginators are included as well
import mypy_boto3_iot1click_devices.paginator as iot1click_devices_paginators
list_device_events_paginator: iot1click_devices_paginators.ListDeviceEventsPaginator = client.get_paginator("list_device_events")
list_devices_paginator: iot1click_devices_paginators.ListDevicesPaginator = client.get_paginator("list_devices")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_iot1click_devices
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("iot1click-devices")
session_client = boto3.Session().client("iot1click-devices")
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-iot1click-devices-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9041bd667a7828f4b975f9840f95a944b78f71662d1649bde37a0aaa20ffe1cf |
|
MD5 | 9dd48f757adb780b441504626191ef2f |
|
BLAKE2b-256 | 7c138119b8fb06c3bf9f2835ef6f66fa0931256d418474b02064f3aa6f79bc44 |
Hashes for mypy_boto3_iot1click_devices-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6df10b0a0ab9589e6f8d18062c06b821412c531866b14dd1e97ad849060349 |
|
MD5 | 446da02142d4c07841bedcf08fb7b2a0 |
|
BLAKE2b-256 | d2636dd23cda5e5d9011d6c69b19b4990c8dbc22d6fdff57a0a2c1c1c241212e |