Examples#
Auto-generated documentation for ivschat type annotations stubs module types-aiobotocore-ivschat.
Client#
Implicit type annotations#
Can be used with types-aioboto3[ivschat]
package installed.
Write your ivschat
code as usual,
type checking and code completion should work out of the box.
# ivschatClient usage example
from aioboto3.session import Session
session = Session()
async with session.client("ivschat") as client: # (1)
result = await client.create_chat_token() # (2)
- client: ivschatClient
- result: CreateChatTokenResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[ivschat]
or a standalone types_aiobotocore_ivschat
package, you have to explicitly specify
client: ivschatClient
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.
# ivschatClient usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_ivschat.client import ivschatClient
from types_aiobotocore_ivschat.type_defs import CreateChatTokenResponseTypeDef
from types_aiobotocore_ivschat.type_defs import CreateChatTokenRequestRequestTypeDef
session = Session()
client: ivschatClient
async with session.client("ivschat") as client: # (1)
kwargs: CreateChatTokenRequestRequestTypeDef = {...} # (2)
result: CreateChatTokenResponseTypeDef = await client.create_chat_token(**kwargs) # (3)
- client: ivschatClient
- kwargs: CreateChatTokenRequestRequestTypeDef
- result: CreateChatTokenResponseTypeDef