Examples#
Index > LookoutEquipment > Examples
Auto-generated documentation for LookoutEquipment type annotations stubs module mypy-boto3-lookoutequipment.
Client#
Implicit type annotations#
Can be used with boto3-stubs[lookoutequipment]
package installed.
Write your LookoutEquipment
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# LookoutEquipmentClient usage example
from boto3.session import Session
session = Session()
client = session.client("lookoutequipment") # (1)
result = client.create_dataset() # (2)
- client: LookoutEquipmentClient
- result: CreateDatasetResponseTypeDef
Explicit type annotations#
With boto3-stubs-lite[lookoutequipment]
or a standalone mypy_boto3_lookoutequipment
package, you have to explicitly specify client: LookoutEquipmentClient
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 method usage example#
# LookoutEquipmentClient usage example with type annotations
from boto3.session import Session
from mypy_boto3_lookoutequipment.client import LookoutEquipmentClient
from mypy_boto3_lookoutequipment.type_defs import CreateDatasetResponseTypeDef
from mypy_boto3_lookoutequipment.type_defs import CreateDatasetRequestTypeDef
session = Session()
client: LookoutEquipmentClient = session.client("lookoutequipment")
kwargs: CreateDatasetRequestTypeDef = {...}
result: CreateDatasetResponseTypeDef = client.create_dataset(**kwargs)