Skip to content

Examples#

Index > IoTDeviceAdvisor > Examples

Auto-generated documentation for IoTDeviceAdvisor type annotations stubs module types-aiobotocore-iotdeviceadvisor.

Client#

Implicit type annotations#

Can be used with types-aiobotocore[iotdeviceadvisor] package installed.

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

# IoTDeviceAdvisorClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("iotdeviceadvisor") as client:  # (1)
    result = await client.create_suite_definition()  # (2)
  1. client: IoTDeviceAdvisorClient
  2. result: CreateSuiteDefinitionResponseTypeDef

Explicit type annotations#

With types-aiobotocore-lite[iotdeviceadvisor] or a standalone types_aiobotocore_iotdeviceadvisor package, you have to explicitly specify client: IoTDeviceAdvisorClient 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.

# IoTDeviceAdvisorClient usage example with type annotations

from aiobotocore.session import get_session

from types_aiobotocore_iotdeviceadvisor.client import IoTDeviceAdvisorClient
from types_aiobotocore_iotdeviceadvisor.type_defs import CreateSuiteDefinitionResponseTypeDef
from types_aiobotocore_iotdeviceadvisor.type_defs import CreateSuiteDefinitionRequestRequestTypeDef


session = get_session()

async with session.create_client("iotdeviceadvisor") as client:
    client: IoTDeviceAdvisorClient
    kwargs: CreateSuiteDefinitionRequestRequestTypeDef = {...}
    result: CreateSuiteDefinitionResponseTypeDef = await client.create_suite_definition(**kwargs)