Registry /
type-stubs / mypy-boto3-cleanroomsml
Install & Compatibility
Where this runs
tested against v1.43.57 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.674s · 116.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.8s · import 0.624s · 115MB
114MB installed
● package 114MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CleanRoomsMLClient
✓ from mypy_boto3_cleanroomsml.client import CleanRoomsMLClient
boto3.client
✓ import boto3
client: CleanRoomsMLClient = boto3.client('cleanrooms-ml')
✗ from mypy_boto3_cleanroomsml import client
mypy-boto3-cleanroomsml provides type stubs, not a runtime client. The actual client is obtained from the boto3 library. Explicit type annotation for the client is often recommended for better IDE support.
This quickstart demonstrates how to initialize a `boto3` client for CleanRoomsML with explicit type annotations from `mypy-boto3-cleanroomsml`. It then performs a simple `list_audience_models` API call. Run `mypy your_script_name.py` to see type checking in action.
import boto3
from mypy_boto3_cleanroomsml.client import CleanRoomsMLClient
# Boto3 will pick up credentials from environment variables or ~/.aws/credentials
# This example demonstrates type hinting for the client.
client: CleanRoomsMLClient = boto3.client('cleanrooms-ml')
print("Listing CleanRooms ML audience models...")
try:
response = client.list_audience_models(maxResults=1)
models = response.get('audienceModelSummaries', [])
if models:
print(f"Found {len(models)} audience model(s). First model name: {models[0].get('name')}")
else:
print("No audience models found.")
except Exception as e:
print(f"Error listing audience models: {e}")
# Example of type-checking a method call (mypy will validate arguments and return type)
# mypy will report errors if 'maxResults' was misspelled or of wrong type.
# mypy will also know the structure of `response` and its `get` methods.
Debug
Known issues
breakingPython 3.8 support has been removed since `mypy-boto3-builder` version 8.12.0. Users must use Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or later.
affects: mypy-boto3-builder >=8.12.0 (and generated stubs like mypy-boto3-cleanroomsml)
breakingTypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. This might affect code directly importing and referencing `TypedDict` definitions from the stubs.fixReview and update `TypedDict` import paths and names, e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. Examine the specific service's `type_defs` module for exact names.
affects: mypy-boto3-builder >=8.9.0 (and generated stubs)
gotchaThese are type stubs, not runtime code. `mypy-boto3-cleanroomsml` does not provide an executable client or modify `boto3`'s runtime behavior. It only provides type hints for static analysis.fixAlways install and use `boto3` for actual AWS API interactions. `mypy-boto3-cleanroomsml` is a development dependency for type checking only.
affects: All versions
gotchaSome IDEs (e.g., VS Code without specific extensions or configurations) may require explicit type annotations for `boto3.client()` and `boto3.resource()` calls to fully leverage the type stubs for autocomplete and inline error detection.fixUse explicit type hints for `boto3.client()` and `boto3.resource()` return values, as shown in the quickstart (e.g., `client: CleanRoomsMLClient = boto3.client('cleanrooms-ml')`). affects: All versions
Upgrade
Version history
1.43.57latest on PyPI · released Jul 27, 2026
Audit
Dependencies
boto3requiredProvides the actual runtime AWS SDK for Python that these type stubs annotate.
mypyoptionalRequired for static type checking to utilize these type annotations.
mypy-boto3-builderoptionalThe tool used to generate these type stubs; not a runtime dependency for users of the stubs.