{"id":3688,"library":"mypy-boto3-route53-recovery-readiness","title":"mypy-boto3-route53-recovery-readiness","description":"mypy-boto3-route53-recovery-readiness provides type annotations for the `boto3` AWS Route53RecoveryReadiness service, allowing static type checkers like `mypy` to validate `boto3` usage. It's currently at version 1.42.3 and is part of the `mypy-boto3-builder` ecosystem, which generates packages for all `boto3` services and is frequently updated, often in sync with `boto3` releases.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","route53recoveryreadiness","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-route53-recovery-readiness","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"Provides the runtime AWS SDK that these type stubs annotate.","package":"boto3","optional":false},{"reason":"The static type checker that utilizes these annotations.","package":"mypy","optional":true}],"imports":[{"note":"Type stubs are imported from the dedicated mypy-boto3 package, not directly from the runtime boto3 library.","wrong":"from boto3.client import Route53RecoveryReadinessClient","symbol":"Route53RecoveryReadinessClient","correct":"from mypy_boto3_route53_recovery_readiness.client import Route53RecoveryReadinessClient"},{"note":"Type definitions for service responses and requests are typically found in the `type_defs` submodule.","wrong":"from mypy_boto3_route53_recovery_readiness import ListReadinessChecksOutputTypeDef","symbol":"ListReadinessChecksOutputTypeDef","correct":"from mypy_boto3_route53_recovery_readiness.type_defs import ListReadinessChecksOutputTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_route53_recovery_readiness.client import Route53RecoveryReadinessClient\nfrom mypy_boto3_route53_recovery_readiness.type_defs import ListReadinessChecksOutputTypeDef\nimport os\n\ndef get_readiness_checks() -> ListReadinessChecksOutputTypeDef:\n    \"\"\"Fetches a list of Route53 Recovery Readiness checks and returns their typed response.\"\"\"\n    # mypy-boto3 provides type hints for the boto3 client object\n    client: Route53RecoveryReadinessClient = boto3.client(\n        \"route53-recovery-readiness\",\n        region_name=os.environ.get(\"AWS_REGION\", \"us-east-1\")\n    )\n    response = client.list_readiness_checks()\n    print(f\"Found {len(response.get('ReadinessChecks', []))} readiness checks.\")\n    return response\n\nif __name__ == \"__main__\":\n    # When mypy is run on this file, it will verify that\n    # `get_readiness_checks` returns a `ListReadinessChecksOutputTypeDef`\n    # and that subsequent access to 'result' follows that type definition.\n    result = get_readiness_checks()\n    # Example of type-safe access:\n    for check in result.get('ReadinessChecks', []):\n        print(f\"  - {check.get('ReadinessCheckName', 'N/A')}\")\n","lang":"python","description":"This quickstart demonstrates how to use the `mypy-boto3-route53-recovery-readiness` type stubs with a standard `boto3` client. When this code is run through `mypy`, it will ensure that the `client` object and the `response` adhere to the type definitions provided by the stub package, catching potential errors at compile time."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher.","message":"Python 3.8 support has been removed since `mypy-boto3-builder` version 8.12.0. Projects using this package must target Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 (builder)"},{"fix":"Ensure your `mypy` configuration and project structure are compatible with PEP 561 stub packages. You might need to rebuild or reconfigure your environment.","message":"As of `mypy-boto3-builder` version 8.12.0, packages migrated to PEP 561 compliance. This change might affect how type checkers locate and process stubs in certain environments or older project setups.","severity":"breaking","affected_versions":">=8.12.0 (builder)"},{"fix":"Review your code for imports of specific `TypeDef` classes and adjust their names according to the new conventions. Refer to the documentation or generated stub files for the exact new names.","message":"Type definition (TypeDef) names for service requests and responses underwent renaming in `mypy-boto3-builder` version 8.9.0. Common patterns like `RequestRequestTypeDef` were shortened to `RequestTypeDef`, and `ExtraRequestTypeDef` became `RequestExtraTypeDef`.","severity":"breaking","affected_versions":">=8.9.0 (builder)"},{"fix":"Understand that `mypy-boto3-*` packages are developer tools for compile-time checking, not runtime dependencies that change program execution.","message":"This library provides type annotations *only*; it does not alter `boto3`'s runtime behavior or provide any runtime functionality itself. Its sole purpose is to enable static type checking.","severity":"gotcha","affected_versions":"all"},{"fix":"Always try to match the major.minor version of `mypy-boto3-*` with your `boto3` installation (e.g., `mypy-boto3-route53-recovery-readiness==1.x.y` for `boto3==1.x.y`). Update both simultaneously if possible.","message":"The `mypy-boto3` stub packages are tightly coupled to specific `boto3` versions. Using a `mypy-boto3-*` package version that doesn't align with your installed `boto3` version can lead to incorrect or missing type hints.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}