Registry /
type-stubs / mypy-boto3-ssm-contacts
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 · 18.4MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.8s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SSMContactsClient
✓ from mypy_boto3_ssm_contacts import SSMContactsClient
✗ from mypy_boto3_ssm_contacts import SSMContactsClient
This quickstart demonstrates how to import and use the `SSMContactsClient` type to annotate your `boto3` client, enabling static type checking for your SSM Contacts operations. It also shows how to import and use specific `TypeDef` objects for response structures.
import boto3
from mypy_boto3_ssm_contacts.client import SSMContactsClient
from mypy_boto3_ssm_contacts.type_defs import ListContactsResponseTypeDef
from typing import TYPE_CHECKING
# Ensure boto3 is installed: pip install boto3
# Use TYPE_CHECKING guard for runtime performance
if TYPE_CHECKING:
# Annotate the client for type-checking benefits
client: SSMContactsClient = boto3.client("ssm-contacts")
else:
client = boto3.client("ssm-contacts")
try:
# Example usage with type-checked method calls and parameters
response: ListContactsResponseTypeDef = client.list_contacts(
MaxResults=5
)
contacts = response.get('Contacts', [])
print(f"Found {len(contacts)} SSM Contacts:")
for contact in contacts:
print(f" - {contact.get('ContactArn')} (Alias: {contact.get('Alias')})")
next_token = response.get('NextToken')
if next_token:
print(f"Next Token: {next_token}")
except Exception as e:
print(f"An error occurred: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed. `mypy-boto3` packages built with `mypy-boto3-builder` version 8.12.0 or newer no longer support Python 3.8.fixUpgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-ssm-contacts versions 1.42.x and above (built with builder >= 8.12.0)
breakingAll `mypy-boto3` packages, including `mypy-boto3-ssm-contacts`, migrated to PEP 561 packaging. While this is a standard for type stubs, older `mypy` versions or non-standard project setups might encounter issues.fixEnsure your `mypy` installation is up-to-date (`pip install --upgrade mypy`) and your project setup follows standard Python packaging practices for type stubs.
affects: mypy-boto3-ssm-contacts versions 1.42.x and above (built with builder >= 8.12.0)
gotchaThis package provides only type annotations. For your code to run, you *must* also have the `boto3` library installed in the same environment.fixEnsure `pip install boto3` is executed alongside `pip install mypy-boto3-ssm-contacts`.
affects: All versions
breakingWhen upgrading from very old versions, be aware that `mypy-boto3-builder` version 8.9.0 introduced breaking changes to how some `TypeDef` names are generated (e.g., shortening names or reordering suffixes to resolve conflicts). Your code might need updates if it directly references these specific type names.fixReview and update explicit `TypeDef` imports if they encounter `NameError` after upgrading. Consult the specific service's `type_defs.pyi` for the correct names.
affects: Upgrades from mypy-boto3-ssm-contacts versions built with mypy-boto3-builder < 8.9.0
gotchaThis package offers static type information only; it does not alter the runtime behavior of `boto3` or introduce new features. Its purpose is purely for static analysis (e.g., `mypy`) and IDE autocompletion.fixUse these types for compile-time checks and development assistance, not for runtime modification or expecting new boto3 functionalities.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed for your code to run.