Examples#
Index > FinSpaceData > Examples
Auto-generated documentation for FinSpaceData type annotations stubs module mypy-boto3-finspace-data.
Client#
Implicit type annotations#
Can be used with boto3-stubs[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)
- client: FinSpaceDataClient
- 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)
- client: FinSpaceDataClient
- paginator: ListChangesetsPaginator
- item: ListChangesetsResponseTypeDef
Explicit type annotations#
With boto3-stubs-lite[finspace-data]
or a standalone mypy_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 mypy_boto3_finspace_data.client import FinSpaceDataClient
from mypy_boto3_finspace_data.type_defs import AssociateUserToPermissionGroupResponseTypeDef
from mypy_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 mypy_boto3_finspace_data.client import FinSpaceDataClient
from mypy_boto3_finspace_data.paginator import ListChangesetsPaginator
from mypy_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)