{"id":3629,"library":"mypy-boto3-mediapackage-vod","title":"mypy-boto3-mediapackage-vod","description":"mypy-boto3-mediapackage-vod provides static type annotations for the `boto3` MediaPackageVod service client, enhancing development with improved IDE auto-completion, static analysis, and early error detection. It is version 1.42.3 and is actively maintained, with releases tied to updates in `boto3` and its generator, `mypy-boto3-builder`.","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","mediapackage-vod"],"install":[{"cmd":"pip install mypy-boto3-mediapackage-vod","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"Provides the actual runtime functionality for AWS services; this package only adds type annotations.","package":"boto3","optional":false},{"reason":"Requires Python 3.9 or newer.","package":"python","optional":false}],"imports":[{"note":"Importing directly from `boto3.client` will not provide type hints for the specific service client. Ensure you import the typed client from the `mypy_boto3_mediapackage_vod.client` submodule.","wrong":"from boto3.client import MediaPackageVodClient","symbol":"MediaPackageVodClient","correct":"from mypy_boto3_mediapackage_vod.client import MediaPackageVodClient"},{"note":"Used for Literal type hints in overloaded functions for `boto3.client`.","symbol":"MediaPackageVodServiceName","correct":"from mypy_boto3_mediapackage_vod.literals import MediaPackageVodServiceName"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_mediapackage_vod.client import MediaPackageVodClient\n    from mypy_boto3_mediapackage_vod.type_defs import ListAssetsResponseTypeDef\n\ndef list_vod_assets() -> ListAssetsResponseTypeDef:\n    # mypy-boto3-mediapackage-vod provides type hints for the client\n    client: MediaPackageVodClient = boto3.client(\"mediapackage-vod\")\n    response = client.list_assets()\n    return response\n\nif __name__ == \"__main__\":\n    # Example usage (requires AWS credentials configured)\n    try:\n        assets = list_vod_assets()\n        print(f\"Found {len(assets.get('Assets', []))} MediaPackage VOD assets.\")\n    except Exception as e:\n        print(f\"Error listing assets: {e}\")","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` MediaPackageVod client with type hints provided by `mypy-boto3-mediapackage-vod`. The `TYPE_CHECKING` block ensures that type imports are only active during static analysis, preventing runtime dependencies. The example then calls `list_assets` and uses the typed response."},"warnings":[{"fix":"Upgrade your Python environment to version 3.9 or newer. The `requires_python` metadata explicitly states `>=3.9`.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0, affecting all generated `mypy-boto3` stub packages, including `mypy-boto3-mediapackage-vod`. Projects using Python 3.8 will no longer receive type hints or updates from this version onwards.","severity":"breaking","affected_versions":">=1.42.0 (corresponding to mypy-boto3-builder 8.12.0)"},{"fix":"Ensure your `mypy` and build environment are up-to-date and correctly configured to recognize PEP 561 stub-only packages. Most modern Python tooling should handle this automatically.","message":"The `mypy-boto3-builder` (which generates this package) migrated to PEP 561 compliant packages in version 8.12.0. This change might affect how some build systems or older static analysis tools interpret the stub distribution.","severity":"breaking","affected_versions":">=1.42.0 (corresponding to mypy-boto3-builder 8.12.0)"},{"fix":"Always ensure you have `pip install boto3` in your project's dependencies alongside `mypy-boto3-mediapackage-vod`.","message":"This package provides only type annotations; it does NOT install or include `boto3` itself. For your application to run, `boto3` must be installed separately in your environment.","severity":"gotcha","affected_versions":"All versions"},{"fix":"If your code explicitly imports or references generated `TypedDict` names, you may need to update these references to match the new naming conventions.","message":"Breaking changes were introduced in `mypy-boto3-builder` 8.9.0 regarding `TypedDict` naming conventions. Specifically, method argument `TypeDef`s now use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `TypeDef` `Extra` postfixes were moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).","severity":"breaking","affected_versions":">=1.42.0 (corresponding to mypy-boto3-builder 8.9.0)"},{"fix":"Add explicit type hints to your `boto3` client/resource instantiations, e.g., `client: MediaPackageVodClient = boto3.client('mediapackage-vod')`.","message":"While many IDEs and `mypy` can infer types, explicitly annotating `boto3.client` and `boto3.resource` calls with the imported client/resource types from `mypy_boto3_servicename` can improve accuracy, especially in IDEs like VSCode or when using 'lite' stub versions.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}