Registry /
type-stubs / mypy-boto3-iottwinmaker
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.8MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 3.3s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
IoTTwinMakerClient
✓ from mypy_boto3_iottwinmaker import IoTTwinMakerClient
✗ from mypy_boto3_iottwinmaker import IoTTwinMakerClient
This quickstart demonstrates how to initialize a type-hinted IoTTwinMaker client and use it to list workspaces. It leverages the `IoTTwinMakerClient` type from `mypy-boto3-iottwinmaker` for improved type checking.
import boto3
import os
from mypy_boto3_iottwinmaker import IoTTwinMakerClient
from mypy_boto3_iottwinmaker.type_defs import ListWorkspacesResponseTypeDef
# Initialize the IoTTwinMaker client with type annotations
client: IoTTwinMakerClient = boto3.client("iottwinmaker")
print("Listing IoTTwinMaker workspaces:")
try:
# Use the client with type-checked methods and type definitions
response: ListWorkspacesResponseTypeDef = client.list_workspaces()
workspaces = response.get("workspaceSummaries", [])
if workspaces:
for ws in workspaces:
print(f"- {ws.get('workspaceId')} (Status: {ws.get('status', {}).get('state')})")
else:
print("No IoTTwinMaker workspaces found in this AWS account/region.")
except Exception as e:
print(f"An error occurred while listing workspaces: {e}")
print("Please ensure you have configured AWS credentials and the IoTTwinMaker service is available in your region.")
Debug
Known issues
breakingPython 3.8 support has been removed for all `mypy-boto3-*` packages generated by `mypy-boto3-builder` version 8.12.0 and later. If you are using Python 3.8, you must pin to an older version of `mypy-boto3-iottwinmaker`.fixUpgrade your Python environment to 3.9 or higher. If you must use Python 3.8, pin `mypy-boto3-iottwinmaker` to a version compatible with `mypy-boto3-builder < 8.12.0` (e.g., `mypy-boto3-iottwinmaker==1.41.0`).
affects: >=1.42.3
gotchaFor optimal type checking, your `mypy-boto3-iottwinmaker` package version should closely match your `boto3` runtime version (specifically, the minor version, e.g., `boto3==1.42.x` with `mypy-boto3-iottwinmaker==1.42.y`). Significant mismatches can lead to incorrect or missing type hints.fixAlways upgrade `boto3` and `mypy-boto3-iottwinmaker` (or `boto3-stubs`) in tandem. Use a tool like `pip-tools` to manage dependencies.
affects: All
gotchaWhile `mypy-boto3-iottwinmaker` provides stubs for a specific service, the recommended approach for complete `boto3` stubs is to install `boto3-stubs` with service extras (e.g., `pip install boto3-stubs[iottwinmaker]`). Installing both `boto3-stubs` and individual `mypy-boto3-*` packages can lead to conflicts or redundant stubs.fixPrefer `pip install boto3-stubs` with specific service extras. Only install individual `mypy-boto3-*` packages if you require granular control over stub versions for specific services, or if `boto3-stubs` does not meet your needs.
affects: All
breakingType definition names for packed method arguments were shortened and conflicting `Extra` postfixes were moved to the end. For example, `CreateDistributionRequestRequestTypeDef` might become `CreateDistributionRequestTypeDef`. This affects code that explicitly imports and uses these `TypeDef`s.fixReview your code for `TypeDef` imports and usage, and update the names according to the new conventions. Consult the `mypy-boto3-builder` release notes or package's `type_defs` submodule for specific changes.
affects: >=1.40.0 (versions generated by mypy-boto3-builder 8.9.0 or later)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for the AWS SDK for Python, which these stubs type-check.