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