Install & Compatibility
Where this runs
tested against v1.43.65 · 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.600s · 52MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.560s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ACMPCAClient
✓ from mypy_boto3_acm_pca.client import ACMPCAClient
ACMPCAClient
✓ from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_acm_pca.client import ACMPCAClient
Recommended pattern for conditional import of type stubs to avoid runtime dependency.
Initializes a boto3 ACMPCA client and demonstrates how to use the type annotations for static analysis while maintaining standard boto3 runtime behavior.
import boto3
from typing import TYPE_CHECKING
# The actual boto3 client is used at runtime
session = boto3.Session()
client = session.client("acm-pca")
# For type checking only, use conditional import
if TYPE_CHECKING:
from mypy_boto3_acm_pca.client import ACMPCAClient
# Type-hint the client for static analysis
typed_client: ACMPCAClient = client
# Example usage with type-hinted client
# These calls will be type-checked by MyPy
response = typed_client.list_certificate_authorities(
MaxResults=5,
Status='ACTIVE'
)
print(response.get('CertificateAuthorities'))
else:
# Runtime execution will use the untyped client
response = client.list_certificate_authorities(MaxResults=5)
print(response.get('CertificateAuthorities'))
Debug
Known issues
breakingStarting with `mypy-boto3-builder` version 8.12.0, support for Python 3.8 has been removed across all `mypy-boto3` packages. This library (v1.42.3) requires Python >= 3.9.fixUpgrade your Python environment to 3.9 or newer.
affects: >=8.12.0 (builder), >=1.42.0 (package)
breakingIn `mypy-boto3-builder` version 8.9.0, there were changes to how TypeDef names are generated, including shortening packed method argument TypeDefs and reordering postfixes for conflicting names. If you were directly importing and using these generated TypeDefs, your code may break.fixReview your explicit TypeDef imports and adjust names according to the new generation rules. Consult the source code or rebuild your project to identify new TypeDef names.
affects: >=8.9.0 (builder), specific service packages generated with this builder version
gotchaThis package provides only type stubs. The `boto3` library itself is still required at runtime for your application to function correctly. Ensure `boto3` is installed alongside `mypy-boto3-acm-pca`.fixAlways install `boto3` (e.g., `pip install boto3 mypy-boto3-acm-pca`).
affects: All versions
gotchaThe `mypy-boto3` project migrated to PEP 561 compliant packages with `mypy-boto3-builder` version 8.12.0. While this is a standard for type stubs, older `mypy` versions or custom `mypy` configurations might struggle to locate the stubs correctly. Ensure `mypy` is up-to-date and configured to find installed packages.fixUpdate your `mypy` installation (`pip install --upgrade mypy`) and ensure your `mypy` configuration (`pyproject.toml`, `mypy.ini`) correctly points to site-packages or doesn't exclude stub files.
affects: >=8.12.0 (builder), >=1.42.0 (package)
Upgrade
Version history
1.43.65latest on PyPI · released Aug 5, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself is required for runtime execution.