Examples#
Auto-generated documentation for Honeycode type annotations stubs module mypy-boto3-honeycode.
Client#
Implicit type annotations#
Can be used with boto3-stubs[honeycode]
package installed.
Write your Honeycode
code as usual,
type checking and code completion should work out of the box.
# HoneycodeClient usage example
from boto3.session import Session
session = Session()
client = session.client("honeycode") # (1)
result = client.batch_create_table_rows() # (2)
- client: HoneycodeClient
- result: BatchCreateTableRowsResultTypeDef
# ListTableColumnsPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("honeycode") # (1)
paginator = client.get_paginator("list_table_columns") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: HoneycodeClient
- paginator: ListTableColumnsPaginator
- item: ListTableColumnsResultTypeDef
Explicit type annotations#
With boto3-stubs-lite[honeycode]
or a standalone mypy_boto3_honeycode
package, you have to explicitly specify client: HoneycodeClient
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.
# HoneycodeClient usage example with type annotations
from boto3.session import Session
from mypy_boto3_honeycode.client import HoneycodeClient
from mypy_boto3_honeycode.type_defs import BatchCreateTableRowsResultTypeDef
from mypy_boto3_honeycode.type_defs import BatchCreateTableRowsRequestRequestTypeDef
session = Session()
client: HoneycodeClient = session.client("honeycode")
kwargs: BatchCreateTableRowsRequestRequestTypeDef = {...}
result: BatchCreateTableRowsResultTypeDef = client.batch_create_table_rows(**kwargs)
# ListTableColumnsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_honeycode.client import HoneycodeClient
from mypy_boto3_honeycode.paginator import ListTableColumnsPaginator
from mypy_boto3_honeycode.type_defs import ListTableColumnsResultTypeDef
session = Session()
client: HoneycodeClient = session.client("honeycode")
paginator: ListTableColumnsPaginator = client.get_paginator("list_table_columns")
for item in paginator.paginate(...):
item: ListTableColumnsResultTypeDef
print(item)