Skip to content

Examples#

Index > SimSpaceWeaver > Examples

Auto-generated documentation for SimSpaceWeaver type annotations stubs module mypy-boto3-simspaceweaver.

Client#

Implicit type annotations#

Can be used with boto3-stubs[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 boto3.session import Session


session = Session()

client = session.client("simspaceweaver")  # (1)
result = client.describe_app()  # (2)
  1. client: SimSpaceWeaverClient
  2. result: DescribeAppOutputTypeDef

Explicit type annotations#

With boto3-stubs-lite[simspaceweaver] or a standalone mypy_boto3_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 boto3.session import Session

from mypy_boto3_simspaceweaver.client import SimSpaceWeaverClient
from mypy_boto3_simspaceweaver.type_defs import DescribeAppOutputTypeDef
from mypy_boto3_simspaceweaver.type_defs import DescribeAppInputTypeDef


session = Session()

client: SimSpaceWeaverClient = session.client("simspaceweaver")

kwargs: DescribeAppInputTypeDef = {...}
result: DescribeAppOutputTypeDef = client.describe_app(**kwargs)