types-boto3-stepfunctions
raw JSON → 1.43.0 verified Sat May 09 auth: no python
Type annotations for boto3 SFN (Step Functions) service, generated by mypy-boto3-builder. Provides static type checking support for boto3 Step Functions client, service model, and paginators. Version 1.43.0 corresponds to boto3 SFN 1.43.0 service. Package is auto-generated and released on a regular cadence alongside boto3 service updates.
pip install types-boto3-stepfunctions Common errors
error ModuleNotFoundError: No module named 'mypy_boto3_stepfunctions' ↓
cause Package not installed or wrong Python environment.
fix
Run
pip install types-boto3-stepfunctions (note: the package name is 'types-boto3-stepfunctions', but import uses 'mypy_boto3_stepfunctions'). error ImportError: cannot import name 'SFNClient' from 'mypy_boto3_stepfunctions' ↓
cause Outdated package version; SFNClient may not exist in older versions.
fix
Upgrade to latest version:
pip install --upgrade types-boto3-stepfunctions. error TypeError: 'type' object is not subscriptable ↓
cause Using Python <3.9 without importing from __future__ annotations.
fix
Add
from __future__ import annotations at top of file, or upgrade to Python >=3.9. Warnings
breaking Version 8.9.0 of the builder introduced renaming of TypeDefs: extra postfix moved to end (e.g., CreateDistributionExtraRequestTypeDef became CreateDistributionRequestExtraTypeDef). If you use type aliases directly, update imports. ↓
fix Update any references to renamed TypeDefs. Check the changelog for specifics.
deprecated Python 3.8 support removed in builder version 8.12.0. types-boto3-stepfunctions now requires Python >=3.9. ↓
fix Upgrade to Python 3.9 or later.
gotcha These stubs are auto-generated; service changes in boto3 may not be immediately reflected. If you encounter missing types, upgrade the package or report an issue. ↓
fix Run `pip install --upgrade types-boto3-stepfunctions`.
gotcha The package only provides type annotations; it does not include runtime implementations. Ensure boto3 is installed and imported normally. ↓
fix Install boto3 separately: `pip install boto3`.
Imports
- SFNClient
from mypy_boto3_stepfunctions import SFNClient - SFNServiceResource
from mypy_boto3_stepfunctions import SFNServiceResource - SFNPaginator
from mypy_boto3_stepfunctions.paginator import SFNPaginator
Quickstart
import boto3
from mypy_boto3_stepfunctions import SFNClient
client: SFNClient = boto3.client('stepfunctions', region_name='us-east-1')
# Now client is fully typed
response = client.list_state_machines()
print(response['stateMachines'])