Examples#
Index > IoTTwinMaker > Examples
Auto-generated documentation for IoTTwinMaker type annotations stubs module mypy-boto3-iottwinmaker.
Client#
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.
# IoTTwinMakerClient usage example
from boto3.session import Session
session = Session()
client = session.client("iottwinmaker") # (1)
result = client.batch_put_property_values() # (2)
- client: IoTTwinMakerClient
- 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.
# IoTTwinMakerClient usage example with type annotations
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)