mypy-boto3-nova-act: Type Annotations for AWS NovaActService

1.42.3 · active · verified Sat Apr 11

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

Install

Imports

Quickstart

This quickstart demonstrates how to import and use the `NovaActServiceClient` type from `mypy-boto3-nova-act` with a standard `boto3` client. The `TYPE_CHECKING` block ensures that `mypy` can apply the strong type definitions, while the runtime code remains unaffected.

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

view raw JSON →