mypy-boto3-nova-act: Type Annotations for AWS NovaActService
mypy-boto3-nova-act provides PEP 561 type annotations for the `boto3` AWS NovaActService client. It allows static type checking tools like `mypy` to validate `boto3` calls, catching potential errors at development time. Generated by `mypy-boto3-builder 8.12.0`, it is part of a larger collection of stubs updated regularly to reflect `boto3` and `botocore` changes. The current version is `1.42.3` and it requires Python 3.9+.
Warnings
- breaking Support for Python 3.8 was removed in `mypy-boto3-builder` 8.12.0. Users on Python 3.8 must use older versions of the `mypy-boto3` packages or upgrade their Python interpreter.
- gotcha This package provides only type stubs for `boto3`; `boto3` itself must be installed separately for runtime functionality. Not installing `boto3` will lead to `ModuleNotFoundError` at runtime.
- gotcha To benefit from these type stubs, you must run `mypy` (or another static type checker) on your code. Installing the package alone does not perform type checking automatically.
- breaking `mypy-boto3-builder` version 8.9.0 introduced breaking changes to TypeDef naming conventions (e.g., `CreateDistributionRequestRequestTypeDef` becoming `CreateDistributionRequestTypeDef`). This can cause type errors if updating from older versions.
- breaking As of `mypy-boto3-builder` 8.12.0, packages migrated to PEP 561. This change might subtly affect how stubs are discovered by `mypy` or other tooling in some environments.
Install
-
pip install mypy-boto3-nova-act
Imports
- NovaActServiceClient
from mypy_boto3_nova_act.client import NovaActServiceClient
Quickstart
import boto3
from mypy_boto3_nova_act.client import NovaActServiceClient
from typing import TYPE_CHECKING
# Instantiate the boto3 client (runtime code)
nova_act_client = boto3.client("nova-act")
# This block is only processed by type checkers like mypy
if TYPE_CHECKING:
# Assign the runtime client to a typed variable for static analysis
# This allows mypy to apply the provided type stubs
typed_nova_act_client: NovaActServiceClient = nova_act_client
# Example of a typed call (replace with actual NovaActService operation)
# mypy would validate parameters and return types for methods of typed_nova_act_client
# For instance, a non-existent method call would be flagged by mypy:
# typed_nova_act_client.non_existent_method() # Mypy error here
print(f"NovaActService client created: {type(nova_act_client)}")
# To run type checking, execute: mypy your_script_name.py