Examples#
Index > TaxSettings > Examples
Auto-generated documentation for TaxSettings type annotations stubs module types-boto3-taxsettings.
Client#
Implicit type annotations#
Can be used with types-boto3[taxsettings]
package installed.
Write your TaxSettings
code as usual,
type checking and code completion should work out of the box.
# TaxSettingsClient usage example
from boto3.session import Session
session = Session()
client = session.client("taxsettings") # (1)
result = client.batch_delete_tax_registration() # (2)
- client: TaxSettingsClient
- result: BatchDeleteTaxRegistrationResponseTypeDef
# ListSupplementalTaxRegistrationsPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("taxsettings") # (1)
paginator = client.get_paginator("list_supplemental_tax_registrations") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: TaxSettingsClient
- paginator: ListSupplementalTaxRegistrationsPaginator
- item: ListSupplementalTaxRegistrationsResponseTypeDef
Explicit type annotations#
With types-boto3-lite[taxsettings]
or a standalone types_boto3_taxsettings
package, you have to explicitly specify client: TaxSettingsClient
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.
# TaxSettingsClient usage example with type annotations
from boto3.session import Session
from types_boto3_taxsettings.client import TaxSettingsClient
from types_boto3_taxsettings.type_defs import BatchDeleteTaxRegistrationResponseTypeDef
from types_boto3_taxsettings.type_defs import BatchDeleteTaxRegistrationRequestRequestTypeDef
session = Session()
client: TaxSettingsClient = session.client("taxsettings")
kwargs: BatchDeleteTaxRegistrationRequestRequestTypeDef = {...}
result: BatchDeleteTaxRegistrationResponseTypeDef = client.batch_delete_tax_registration(**kwargs)
# ListSupplementalTaxRegistrationsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_taxsettings.client import TaxSettingsClient
from types_boto3_taxsettings.paginator import ListSupplementalTaxRegistrationsPaginator
from types_boto3_taxsettings.type_defs import ListSupplementalTaxRegistrationsResponseTypeDef
session = Session()
client: TaxSettingsClient = session.client("taxsettings")
paginator: ListSupplementalTaxRegistrationsPaginator = client.get_paginator("list_supplemental_tax_registrations")
for item in paginator.paginate(...):
item: ListSupplementalTaxRegistrationsResponseTypeDef
print(item)