Examples#
Index > MarketplaceCommerceAnalytics > Examples
Auto-generated documentation for MarketplaceCommerceAnalytics type annotations stubs module mypy-boto3-marketplacecommerceanalytics.
Client#
Implicit type annotations#
Can be used with boto3-stubs[marketplacecommerceanalytics]
package installed.
Write your MarketplaceCommerceAnalytics
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# MarketplaceCommerceAnalyticsClient usage example
from boto3.session import Session
session = Session()
client = session.client("marketplacecommerceanalytics") # (1)
result = client.generate_data_set() # (2)
- client: MarketplaceCommerceAnalyticsClient
- result: GenerateDataSetResultTypeDef
Explicit type annotations#
With boto3-stubs-lite[marketplacecommerceanalytics]
or a standalone mypy_boto3_marketplacecommerceanalytics
package, you have to explicitly specify client: MarketplaceCommerceAnalyticsClient
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#
# MarketplaceCommerceAnalyticsClient usage example with type annotations
from boto3.session import Session
from mypy_boto3_marketplacecommerceanalytics.client import MarketplaceCommerceAnalyticsClient
from mypy_boto3_marketplacecommerceanalytics.type_defs import GenerateDataSetResultTypeDef
from mypy_boto3_marketplacecommerceanalytics.type_defs import GenerateDataSetRequestTypeDef
session = Session()
client: MarketplaceCommerceAnalyticsClient = session.client("marketplacecommerceanalytics")
kwargs: GenerateDataSetRequestTypeDef = {...}
result: GenerateDataSetResultTypeDef = client.generate_data_set(**kwargs)