Registry / type-stubs / mypy-boto3-connectcases

mypy-boto3-connectcases

JSON →
library1.43.7pypypi✓ verified 23d ago

mypy-boto3-connectcases provides comprehensive type annotations for the `boto3` AWS ConnectCases service, ensuring type safety and improved developer experience when working with AWS SDK for Python. It is generated by `mypy-boto3-builder` and currently stands at version 1.42.74, with a frequent release cadence tied to upstream `boto3` updates and `mypy-boto3-builder` enhancements.

pip install mypy-boto3-connectcases
INSTALL
IMPORT
SIG · MYPY-BOTO3-CONNECT
M
mypy-boto3-connectcases
type-stubspythonv1.43.7
Install
2.6s avg
Import
Disk
71MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.7 · 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
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.6s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ConnectCasesClient
from mypy_boto3_connectcases import ConnectCasesClient
from mypy_boto3_connectcases import ConnectCasesClient

This quickstart demonstrates how to use `boto3` with `mypy-boto3-connectcases` for type hinting. The `TYPE_CHECKING` block ensures that type-specific imports are only active during static analysis by `mypy`, preventing runtime errors. The `boto3.client` call benefits from the provided type annotations, improving code completion and error detection.

import boto3 from typing import TYPE_CHECKING # These imports are only for type checking, they won't be used at runtime if TYPE_CHECKING: from mypy_boto3_connectcases.client import ConnectCasesClient from mypy_boto3_connectcases.type_defs import ListDomainsResponseTypeDef def get_connect_cases_domains() -> 'ListDomainsResponseTypeDef': # boto3 client creation is type-hinted by mypy-boto3-connectcases client: ConnectCasesClient = boto3.client("connectcases") # Example operation with type-hinted methods and response response = client.list_domains() print("Connect Cases Domains found:") for domain in response.get("domains", []): print(f"- Domain ARN: {domain.get('domainArn')}, Domain ID: {domain.get('domainId')}") return response if __name__ == "__main__": try: # Ensure AWS credentials are configured (e.g., via ~/.aws/credentials or env vars) result = get_connect_cases_domains() except Exception as e: print(f"Error interacting with AWS Connect Cases: {e}") print("Please ensure AWS credentials are set up and the 'connectcases' service is available in your region.")
Debug
Known issues
breakingPython 3.8 support has been removed across all `mypy-boto3-*` packages, including `mypy-boto3-connectcases`.
fix
Upgrade your Python environment to version 3.9 or higher.
affects: >=8.12.0
breakingAll `mypy-boto3-*` packages have migrated to PEP 561, potentially affecting how type checkers discover packages if custom `mypy` configurations were relying on older mechanisms.
fix
Ensure `mypy` is updated to a recent version. If issues arise, re-evaluate your `mypy` configuration, especially `mypy_path` or `plugins` settings.
affects: >=8.12.0
gotchaThis package provides *only* type stubs. It does not contain any runtime code or functionality. Always use `import boto3` for actual AWS SDK operations.
fix
Do not attempt to instantiate classes or call methods directly from `mypy_boto3_connectcases`. It is purely for static analysis.
affects: All versions
breakingTypeDef names have undergone changes in recent versions (e.g., `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`), which can break code explicitly importing and using these `TypedDict` definitions.
fix
Review your code for any direct imports of `ResponseTypeDef` or `RequestTypeDef` and adjust their names according to the latest package structure. Consult the specific service's `mypy-boto3` documentation for exact type names.
affects: >=8.9.0
gotchaAWS service names used in `boto3.client()` calls are case-sensitive and may change or be deprecated (e.g., `sms-voice` was replaced by `pinpoint-sms-voice`). Ensure you use the correct, current service name string.
fix
Always verify the correct service name in the official `boto3` documentation or `mypy-boto3` stubs if you encounter `UnknownServiceError` or `mypy` errors related to service client types.
affects: All versions
Upgrade
Version history
1.43.7latest on PyPI · released May 13, 2026
Audit
Dependencies
boto3requiredProvides the actual runtime client for AWS services that these stubs type-annotate.
typing-extensionsoptionalMay be used internally for compatibility with older Python versions, automatically managed by builder.
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
mypy-boto3-connectcases — pip install mypy-boto3-connectcases · libregistry