Skip to content

Examples#

Index > FinSpaceData > Examples

Auto-generated documentation for FinSpaceData type annotations stubs module types-boto3-finspace-data.

Client#

Implicit type annotations#

Can be used with types-boto3[finspace-data] package installed.

Write your FinSpaceData code as usual, type checking and code completion should work out of the box.

# FinSpaceDataClient usage example

from boto3.session import Session


session = Session()

client = session.client("finspace-data")  # (1)
result = client.associate_user_to_permission_group()  # (2)
  1. client: FinSpaceDataClient
  2. result: AssociateUserToPermissionGroupResponseTypeDef
# ListChangesetsPaginator usage example

from boto3.session import Session


session = Session()
client = session.client("finspace-data")  # (1)

paginator = client.get_paginator("list_changesets")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: FinSpaceDataClient
  2. paginator: ListChangesetsPaginator
  3. item: ListChangesetsResponseTypeDef

Explicit type annotations#

With types-boto3-lite[finspace-data] or a standalone types_boto3_finspace_data package, you have to explicitly specify client: FinSpaceDataClient 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.

# FinSpaceDataClient usage example with type annotations

from boto3.session import Session

from types_boto3_finspace_data.client import FinSpaceDataClient
from types_boto3_finspace_data.type_defs import AssociateUserToPermissionGroupResponseTypeDef
from types_boto3_finspace_data.type_defs import AssociateUserToPermissionGroupRequestRequestTypeDef


session = Session()

client: FinSpaceDataClient = session.client("finspace-data")

kwargs: AssociateUserToPermissionGroupRequestRequestTypeDef = {...}
result: AssociateUserToPermissionGroupResponseTypeDef = client.associate_user_to_permission_group(**kwargs)
# ListChangesetsPaginator usage example with type annotations

from boto3.session import Session

from types_boto3_finspace_data.client import FinSpaceDataClient
from types_boto3_finspace_data.paginator import ListChangesetsPaginator
from types_boto3_finspace_data.type_defs import ListChangesetsResponseTypeDef


session = Session()
client: FinSpaceDataClient = session.client("finspace-data")

paginator: ListChangesetsPaginator = client.get_paginator("list_changesets")
for item in paginator.paginate(...):
    item: ListChangesetsResponseTypeDef
    print(item)