Skip to content

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.

# SimSpaceWeaverClient usage example

from aioboto3.session import Session


session = Session()

async with session.client("simspaceweaver") as client:  # (1)
    result = await client.describe_app()  # (2)
  1. client: SimSpaceWeaverClient
  2. 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.

# 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 DescribeAppInputRequestTypeDef


session = Session()

client: SimSpaceWeaverClient
async with session.client("simspaceweaver") as client:  # (1)
    kwargs: DescribeAppInputRequestTypeDef = {...}  # (2)
    result: DescribeAppOutputTypeDef = await client.describe_app(**kwargs)  # (3)
  1. client: SimSpaceWeaverClient
  2. kwargs: DescribeAppInputRequestTypeDef
  3. result: DescribeAppOutputTypeDef