Registry / type-stubs / mypy-boto3-route53resolver

mypy-boto3-route53resolver

JSON →
library1.43.31pypypi✓ verified 23d ago

mypy-boto3-route53resolver provides type annotations for the `boto3` Route53Resolver service. It is part of the `mypy-boto3` project, which offers comprehensive type hints for all `boto3` services. This package, currently at version 1.42.10, is generated by `mypy-boto3-builder` (version 8.12.0) and typically releases frequently to keep pace with `boto3` updates and new AWS services.

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

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

Route53ResolverClient
from mypy_boto3_route53resolver import Route53ResolverClient
from mypy_boto3_route53resolver import Route53ResolverClient

This quickstart demonstrates how to initialize a `boto3` Route53Resolver client and use its methods with `mypy-boto3-route53resolver` type hints. The `TYPE_CHECKING` block ensures type imports are only active during static analysis, avoiding runtime overhead or potential circular imports. The example lists firewall configurations, expecting AWS credentials to be configured in the environment.

import boto3 from typing import TYPE_CHECKING # Only import type hints during type checking, not at runtime if TYPE_CHECKING: from mypy_boto3_route53resolver.client import Route53ResolverClient from mypy_boto3_route53resolver.type_defs import ListFirewallConfigsRequestRequestTypeDef def get_resolver_client() -> "Route53ResolverClient": """Initializes and returns a Route53Resolver client with type hints.""" # boto3.client returns an untyped client; mypy uses the stub's definition return boto3.client("route53resolver") def list_firewall_configs(): """Lists Route53 Resolver firewall configurations.""" client: Route53ResolverClient = get_resolver_client() # Example request type for a method # The actual arguments passed to list_firewall_configs will be type-checked request_params: ListFirewallConfigsRequestRequestTypeDef = { "MaxResults": 10 } response = client.list_firewall_configs(**request_params) print("Firewall Configurations:") for config in response.get("FirewallConfigs", []): print(f" - {config.get('Id')} ({config.get('Name')})") if __name__ == "__main__": # This code requires AWS credentials configured (e.g., via AWS CLI or environment variables) try: list_firewall_configs() except Exception as e: print(f"Error during quickstart execution (likely AWS credentials/config issue): {e}") print("Please ensure your AWS credentials are configured.")
Debug
Known issues
breakingThe `mypy-boto3-builder` (which generates this package) migrated to PEP 561 package structure and removed support for Python 3.8 starting with builder version 8.12.0. This means `mypy-boto3-route53resolver` version 1.42.10 and newer will not work with Python 3.8.
fix
Upgrade your Python environment to 3.9 or higher. Reinstall `mypy-boto3-route53resolver` to ensure the correct PEP 561-compliant package structure is in place.
affects: mypy-boto3-builder >= 8.12.0 (and generated stub packages)
breakingStarting with `mypy-boto3-builder` version 8.9.0, there were breaking changes to how TypeDef names for method arguments are generated, often resulting in shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).
fix
Review and update any direct imports or references to `TypeDef` objects in your codebase to match the new naming conventions.
affects: mypy-boto3-builder >= 8.9.0 (and generated stub packages)
gotchaThe `mypy-boto3-route53resolver` package provides type hints only; it does not include the `boto3` runtime library itself. For your code to execute, `boto3` must be installed separately.
fix
Ensure `pip install boto3` is run in your environment alongside `mypy-boto3-route53resolver`.
affects: all
gotchaTo effectively use these type annotations, `mypy` must be installed and configured to check your project. Simply installing the stub package is not enough; you must integrate `mypy` into your development workflow.
fix
Install `mypy` (`pip install mypy`) and run it against your project (e.g., `mypy your_module.py` or configure it via `pyproject.toml`).
affects: all
Upgrade
Version history
1.43.31latest on PyPI · released Jun 16, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for the `boto3` runtime library. `boto3` must be installed for runtime functionality.
mypyoptionalRequired to perform static type checking using these stubs.
Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-route53resolver — pip install mypy-boto3-route53resolver · libregistry