mypy-boto3-internetmonitor provides comprehensive type annotations for the boto3 CloudWatch Internet Monitor service (version 1.42.3). Generated with mypy-boto3-builder 8.12.0, these stubs enhance development with static type checking, improved code completion, and refactoring capabilities for boto3 users across various IDEs like VSCode, PyCharm, Emacs, and Sublime Text, and type checkers such as mypy and pyright. The library is actively maintained, with updates released in sync with boto3 versions.
pip install mypy-boto3-internetmonitorVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to obtain a type-hinted CloudWatch Internet Monitor client using boto3.session.client(). This enables full type checking and autocompletion for the client's methods and responses.
Upgrade to Python 3.9 or newer.
Ensure your type checker (e.g., mypy, pyright) and build tools are up-to-date and configured to correctly resolve PEP 561 packages. Typically, no manual fix is needed if using standard tools.
Review your code for explicit TypeDef imports and adjust names according to the new convention (e.g., `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`).
Always explicitly type-hint the client object, e.g., `client: InternetMonitorClient = boto3.client("internetmonitor")`.In non-`TYPE_CHECKING` blocks, set the type aliases to `object`, e.g., `if TYPE_CHECKING: from mypy_boto3_ec2 import EC2Client else: EC2Client = object`.