{"id":3652,"library":"mypy-boto3-nova-act","title":"mypy-boto3-nova-act: Type Annotations for AWS NovaActService","description":"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+.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","stubs","nova-act"],"install":[{"cmd":"pip install mypy-boto3-nova-act","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"Required for runtime functionality; this package only provides type stubs.","package":"boto3","optional":false},{"reason":"Required for static type checking; this package provides the stubs consumed by mypy.","package":"mypy","optional":true}],"imports":[{"note":"Each AWS service's type stubs are located in their own top-level package and module.","wrong":"from mypy_boto3.nova_act import NovaActServiceClient","symbol":"NovaActServiceClient","correct":"from mypy_boto3_nova_act.client import NovaActServiceClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_nova_act.client import NovaActServiceClient\nfrom typing import TYPE_CHECKING\n\n# Instantiate the boto3 client (runtime code)\nnova_act_client = boto3.client(\"nova-act\")\n\n# This block is only processed by type checkers like mypy\nif TYPE_CHECKING:\n    # Assign the runtime client to a typed variable for static analysis\n    # This allows mypy to apply the provided type stubs\n    typed_nova_act_client: NovaActServiceClient = nova_act_client\n\n    # Example of a typed call (replace with actual NovaActService operation)\n    # mypy would validate parameters and return types for methods of typed_nova_act_client\n    # For instance, a non-existent method call would be flagged by mypy:\n    # typed_nova_act_client.non_existent_method() # Mypy error here\n\nprint(f\"NovaActService client created: {type(nova_act_client)}\")\n# To run type checking, execute: mypy your_script_name.py","lang":"python","description":"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."},"warnings":[{"fix":"Upgrade to Python 3.9+ or pin `mypy-boto3-nova-act` to a version compatible with Python 3.8 (e.g., <8.12.0).","message":"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.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder and derived packages"},{"fix":"Ensure `boto3` is installed in your environment: `pip install boto3`.","message":"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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Install `mypy` (`pip install mypy`) and integrate it into your development workflow. Run `mypy your_script.py` to check types.","message":"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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review and update your TypeDef imports and usages to align with the new naming conventions, consulting the service's stub definitions if necessary.","message":"`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.","severity":"breaking","affected_versions":">=8.9.0 of mypy-boto3-builder and derived packages"},{"fix":"Ensure `mypy` is up-to-date. If issues persist, verify your `mypy` configuration regarding stub paths and discovery. Typically, PEP 561 improves discovery.","message":"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.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder and derived packages"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}