Registry /
type-stubs / mypy-boto3-route53-recovery-cluster
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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Route53RecoveryClusterClient
✓ from mypy_boto3_route53_recovery_cluster import Route53RecoveryClusterClient
✗ from mypy_boto3_route53_recovery_cluster import Route53RecoveryClusterClient
This quickstart demonstrates how to initialize a type-hinted `Route53RecoveryClusterClient` and call a basic operation like `list_clusters`. The `TYPE_CHECKING` block ensures that `mypy` can use the specific client type for robust static analysis, while allowing the code to run without `mypy-boto3` dependencies in production. Remember to replace placeholder credentials with actual AWS configuration or environment variables.
import boto3
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_route53_recovery_cluster.client import Route53RecoveryClusterClient
from mypy_boto3_route53_recovery_cluster.type_defs import ListClustersResponseTypeDef
def get_recovery_cluster_info() -> ListClustersResponseTypeDef:
# It's recommended to explicitly type the client for best autocompletion and type checking.
client: Route53RecoveryClusterClient = boto3.client(
"route53-recovery-cluster",
region_name="us-east-1", # Replace with your region
aws_access_key_id="AKIATEST", # Use os.environ.get('AWS_ACCESS_KEY_ID', '') in real code
aws_secret_access_key="SECRETLONGKEY", # Use os.environ.get('AWS_SECRET_ACCESS_KEY', '')
aws_session_token="SESSIONTOKEN" # Use os.environ.get('AWS_SESSION_TOKEN', '') if applicable
)
response = client.list_clusters()
print(f"Clusters: {response.get('Clusters')}")
return response
if __name__ == "__main__":
# This part would typically run in a properly configured AWS environment
# For this example, we'll just print a placeholder as credentials are not live
print("--- Mocking AWS client call for quickstart ---")
if TYPE_CHECKING:
result = get_recovery_cluster_info()
print(f"Mocked Cluster List (Type-checked): {result.get('Clusters')}")
else:
print("Run mypy to check types. Actual execution requires AWS credentials.")
Debug
Known issues
breakingPython 3.8 support was removed with `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 or older must upgrade their Python environment to `3.9` or higher to continue receiving updates for `mypy-boto3` packages.fixUpgrade your Python environment to version 3.9 or newer.
affects: mypy-boto3-builder >= 8.12.0
breaking`mypy-boto3-builder` (from which this package is generated) migrated to PEP 561 compliant packages in version 8.12.0. This changes how stub files are distributed and discovered, potentially impacting complex build setups or custom stub path configurations.fixEnsure your type checker (e.g., `mypy`) is configured to correctly discover PEP 561 compliant stub packages. Most standard setups should handle this automatically.
affects: mypy-boto3-builder >= 8.12.0
breakingStarting with `mypy-boto3-builder` 8.9.0, `TypeDef` naming conventions changed. This includes shortening names for packed method arguments (e.g., `RequestRequestTypeDef` -> `RequestTypeDef`) and moving `Extra` postfixes. This can lead to `NameError` or incorrect type hints if you directly import or refer to these `TypeDef`s by their old names.fixReview your code for direct imports of `TypeDef`s and update their names according to the new conventions as indicated by your type checker's errors.
affects: mypy-boto3-builder >= 8.9.0
gotchaFor optimal autocompletion and robust type checking, especially within IDEs like VSCode or PyCharm, it's often recommended to explicitly annotate the type of the `boto3` client (e.g., `client: Route53RecoveryClusterClient = boto3.client(...)`) rather than relying solely on implicit type inference.fixAdd explicit type annotations to your `boto3` client and resource objects, importing the specific client/resource type from `mypy_boto3_SERVICE.client` or `mypy_boto3_SERVICE.service_resource`.
affects: All versions
gotchaWhen conditionally importing `mypy-boto3` types using `if TYPE_CHECKING:`, `pylint` might report 'Undefined variable' errors in the `else` branch.fixTo resolve this, assign `object` to the type symbols in the `else` branch of your `TYPE_CHECKING` block. Example: `else: Route53RecoveryClusterClient = object`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the underlying AWS SDK functionality that these type annotations describe.
mypyoptionalThe primary static type checker for which these annotations are designed.
typing-extensionsoptionalMay be required for compatibility with certain Python versions or advanced `typing` features, though often resolved by `install_requires` in modern builder versions (Python 3.9+).