Registry /
type-stubs / mypy-boto3-codecatalyst
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.606s · 52MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 4.4s · import 0.554s · 53MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CodeCatalystClient
✓ from mypy_boto3_codecatalyst import CodeCatalystClient
✗ from boto3.client import CodeCatalystClient
The type annotation for the client comes from the mypy-boto3 stubs, not directly from the boto3 client module itself.
ListDevEnvironmentsResponseTypeDef
✓ from mypy_boto3_codecatalyst.type_defs import ListDevEnvironmentsResponseTypeDef
Type definitions for API call responses are available in the `type_defs` submodule.
This quickstart demonstrates how to obtain a type-annotated `CodeCatalystClient` using `mypy-boto3-codecatalyst`. This enables full type checking and IDE assistance for all CodeCatalyst service operations.
import boto3
from boto3.session import Session
from mypy_boto3_codecatalyst import CodeCatalystClient
import os
# Ensure AWS credentials are configured (e.g., via environment variables or ~/.aws/credentials)
# For a runnable example, we'll simulate an empty config if not set
# Explicitly set up a session for clarity, though boto3.client() uses a default session
session = Session(
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET'),
region_name=os.environ.get('AWS_REGION', 'us-east-1')
)
# Get a typed CodeCatalyst client
client: CodeCatalystClient = session.client("codecatalyst")
# Now, the 'client' object is fully type-checked by MyPy and provides IDE auto-completion
# For example, calling a method with incorrect arguments will be flagged.
# try:
# response = client.list_dev_environments(InvalidArg=True) # This would be a type error
# except Exception as e:
# print(f"Expected error: {e}")
response = client.list_dev_environments()
print(f"Successfully called list_dev_environments. Found {len(response.get('items', []))} dev environments.")
# Access type-safe response data
# if response['items']:
# first_env_name = response['items'][0]['devEnvironmentName']
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0 (and consequently for packages built with it). Projects using this library must upgrade to Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or a later version.
affects: >=8.12.0 (builder), >=1.42.0 (stubs)
breakingTypeDef names for method arguments and conflicting TypeDefs were renamed in `mypy-boto3-builder` version 8.9.0. Specifically, `RequestRequestTypeDef` was shortened to `RequestTypeDef` and `ExtraRequestTypeDef` was changed to `RequestExtraTypeDef`.fixReview and update TypeDef imports and usage in your codebase to reflect the new naming conventions. Consult the `mypy-boto3-builder` release notes for exact changes if upgrading from older versions.
affects: >=8.9.0 (builder)
gotchaThis package provides type stubs only; `boto3` itself must be installed separately for the code to run. The type stubs are compile-time dependencies, while `boto3` is a runtime dependency.fixEnsure `boto3` is installed alongside `mypy-boto3-codecatalyst` using `pip install boto3 mypy-boto3-codecatalyst`.
affects: All versions
gotchaWhile direct installation of `mypy-boto3-codecatalyst` works, the recommended approach for `boto3` users is to install `boto3-stubs` with the service extra (e.g., `pip install 'boto3-stubs[codecatalyst]'`). This method often provides better overall type inference and compatibility across services by leveraging `boto3-stubs`'s session overloads.fixPrefer `pip install 'boto3-stubs[codecatalyst]'` over `pip install mypy-boto3-codecatalyst` for optimal type checking integration within a `boto3` environment.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the core AWS SDK functionality for which these are type stubs. Required for runtime operations.