Type annotations for boto3.IoT1ClickProjects 1.14.0 service, generated by mypy-boto3-buider 2.1.0
Project description
mypy-boto3-iot1click-projects
Type annotations for boto3.IoT1ClickProjects 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.1.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for IoT1ClickProjects
service.
python -m pip install boto3-stubs[iot1click-projects]
How to use
Client annotations
IoT1ClickProjectsClient
provides annotations for boto3.client("iot1click-projects")
.
import boto3
from mypy_boto3_iot1click_projects import IoT1ClickProjectsClient
client: IoT1ClickProjectsClient = boto3.client("iot1click-projects")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoT1ClickProjectsClient = session.client("iot1click-projects")
Paginators annotations
mypy_boto3_iot1click_projects.paginator
module contains type annotations for all paginators.
from mypy_boto3_iot1click_projects import IoT1ClickProjectsClient
from mypy_boto3_iot1click_projects.paginator import (
ListPlacementsPaginator,
ListProjectsPaginator,
)
client: IoT1ClickProjectsClient = boto3.client("iot1click-projects")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_placements_paginator: ListPlacementsPaginator = client.get_paginator("list_placements")
list_projects_paginator: ListProjectsPaginator = client.get_paginator("list_projects")
Typed dictionations
mypy_boto3_iot1click_projects.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_iot1click_projects.type_defs import DeviceTemplateTypeDef, ...
def get_structure() -> DeviceTemplateTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_iot1click_projects
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-projects")
session_client = boto3.Session().client("iot1click-projects")
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-projects-1.14.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637e88ddf5c1631d7677cca0dd16b74f4a699a42f6e9ca8d5997ddc2cb18b29a |
|
MD5 | d92b2565417ff2c52f48a1d94496e0a6 |
|
BLAKE2b-256 | 2b8370a28a053ce353fb13d3a24fae3d6d6215351d86fe0a06fa88e238a16d3e |
Hashes for mypy_boto3_iot1click_projects-1.14.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e9c0acca4d725391ef105311ec128af0f448d40bba76b5cdf1acbfd319d0b8 |
|
MD5 | eaf92a6cb1c9b416f09edc68e9114c51 |
|
BLAKE2b-256 | d244d18f891d20294b177febdea16155c8f48d5255329f3643fb4804d647509c |