mypy-boto3-networkmonitor provides comprehensive type annotations for the `boto3` CloudWatch Network Monitor service (version 1.42.3). Generated by `mypy-boto3-builder` 8.12.0, it enhances developer experience by enabling static type checking with tools like mypy and pyright, and improving code completion in IDEs like VSCode and PyCharm. This library helps to proactively identify and fix potential type-related bugs in `boto3` code at development time.
pip install mypy-boto3-networkmonitorVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to obtain a type-annotated `NetworkMonitorClient` from a `boto3` session and use it to call an API method. Type annotations ensure that `client` methods and their arguments are correctly validated by a static type checker.
Upgrade your Python environment to 3.9 or newer. If you must use Python 3.8, you will need to pin `mypy-boto3-networkmonitor` to an older compatible version (e.g., <1.42.3) and `mypy-boto3-builder` to <8.12.0.
Update your code to use the shorter, revised TypeDef names. Refer to the specific service documentation or generated stub files for the correct names if encountering type errors.
For the latest and most comprehensive type annotations, prefer installing `boto3-stubs` with specific service extras (e.g., `boto3-stubs[networkmonitor]`) or the standalone `mypy-boto3-networkmonitor` package directly.
It is recommended to use `boto3-stubs-lite` (e.g., `pip install 'boto3-stubs-lite[networkmonitor]'`) as a more RAM-friendly alternative, though it requires more explicit type annotations. Alternatively, consider disabling PyCharm's built-in type checker and relying solely on an external checker like `mypy` or `pyright`.