Skip to content


Index > IoTTwinMaker > Examples

Auto-generated documentation for IoTTwinMaker type annotations stubs module mypy-boto3-iottwinmaker.


Implicit type annotations

Can be used with boto3-stubs[iottwinmaker] package installed.

Write your IoTTwinMaker code as usual, type checking and code completion should work out of the box.

Client usage example
from boto3.session import Session

session = Session()

client = session.client("iottwinmaker")  # (1)
result = client.batch_put_property_values()  # (2)
  1. client: IoTTwinMakerClient
  2. result: BatchPutPropertyValuesResponseTypeDef

Explicit type annotations

With boto3-stubs-lite[iottwinmaker] or a standalone mypy_boto3_iottwinmaker package, you have to explicitly specify client: IoTTwinMakerClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.

Client usage example
from boto3.session import Session

from mypy_boto3_iottwinmaker.client import IoTTwinMakerClient
from mypy_boto3_iottwinmaker.type_defs import BatchPutPropertyValuesResponseTypeDef
from mypy_boto3_iottwinmaker.type_defs import BatchPutPropertyValuesRequestRequestTypeDef

session = Session()

client: IoTTwinMakerClient = session.client("iottwinmaker")

kwargs: BatchPutPropertyValuesRequestRequestTypeDef = {...}
result: BatchPutPropertyValuesResponseTypeDef = client.batch_put_property_values(**kwargs)