Examples#
Index > SupportApp > Examples
Auto-generated documentation for SupportApp type annotations stubs module types-aiobotocore-support-app.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[support-app]
package installed.
Write your SupportApp
code as usual,
type checking and code completion should work out of the box.
# SupportAppClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("support-app") as client: # (1)
result = await client.list_slack_channel_configurations() # (2)
- client: SupportAppClient
- result: ListSlackChannelConfigurationsResultTypeDef
Explicit type annotations#
With types-aiobotocore-lite[support-app]
or a standalone types_aiobotocore_support_app
package, you have to explicitly specify
client: SupportAppClient
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.
# SupportAppClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_support_app.client import SupportAppClient
from types_aiobotocore_support_app.type_defs import ListSlackChannelConfigurationsResultTypeDef
from types_aiobotocore_support_app.type_defs import ListSlackChannelConfigurationsRequestRequestTypeDef
session = get_session()
async with session.create_client("support-app") as client:
client: SupportAppClient
kwargs: ListSlackChannelConfigurationsRequestRequestTypeDef = {...}
result: ListSlackChannelConfigurationsResultTypeDef = await client.list_slack_channel_configurations(**kwargs)