{"id":3626,"library":"mypy-boto3-marketplace-deployment","title":"mypy-boto3-marketplace-deployment Type Stubs","description":"mypy-boto3-marketplace-deployment provides machine-generated type annotations (type stubs) for the `boto3` AWS SDK's MarketplaceDeploymentService. These stubs enhance static analysis, autocompletion, and error checking in IDEs and type checkers like MyPy, ensuring more robust and maintainable AWS automation scripts. The library is currently at version 1.42.3, mirroring the `boto3` version it types, and is actively maintained with updates generated by `mypy-boto3-builder`.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","typing","mypy","stubs","type-hints","marketplace-deployment","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-marketplace-deployment","lang":"bash","label":"Install specific service stubs"},{"cmd":"pip install boto3-stubs[marketplace-deployment]","lang":"bash","label":"Install via boto3-stubs metapackage"}],"dependencies":[{"reason":"These are type stubs for `boto3`; `boto3` itself must be installed and used at runtime for the stubs to be effective.","package":"boto3","optional":false}],"imports":[{"note":"Primary client type for Marketplace Deployment Service.","symbol":"MarketplaceDeploymentServiceClient","correct":"from mypy_boto3_marketplace_deployment import MarketplaceDeploymentServiceClient"},{"note":"Example of importing a type definition for request/response payloads.","symbol":"DeploymentParameterInputTypeDef","correct":"from mypy_boto3_marketplace_deployment.type_defs import DeploymentParameterInputTypeDef"},{"note":"Importing a literal type for service name.","symbol":"MarketplaceDeploymentServiceServiceName","correct":"from mypy_boto3_marketplace_deployment.literals import MarketplaceDeploymentServiceServiceName"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_marketplace_deployment import MarketplaceDeploymentServiceClient\n    from mypy_boto3_marketplace_deployment.type_defs import DeploymentParameterInputTypeDef\n\n\ndef get_marketplace_deployment_client() -> 'MarketplaceDeploymentServiceClient':\n    \"\"\"Returns a type-hinted MarketplaceDeploymentService client.\"\"\"\n    # boto3.client is dynamically typed, mypy-boto3 provides the static types\n    return boto3.client(\"marketplace-deployment\") # type: ignore[return-value]\n\ndef process_deployment_parameters(client: 'MarketplaceDeploymentServiceClient') -> None:\n    \"\"\"Example of using the client with typed input.\"\"\"\n    # Example of a typed dictionary for input (replace with actual data)\n    deployment_param: DeploymentParameterInputTypeDef = {\n        \"name\": \"ExampleParam\",\n        \"value\": \"ExampleValue\"\n    }\n    # In a real scenario, you'd call a client method here, e.g., client.SomeOperation(**deployment_param)\n    print(f\"Processing deployment parameter: {deployment_param['name']}\")\n\nif __name__ == \"__main__\":\n    client = get_marketplace_deployment_client()\n    process_deployment_parameters(client)\n","lang":"python","description":"This quickstart demonstrates how to import and use the type-hinted `MarketplaceDeploymentServiceClient` with `boto3`. It includes the recommended `if TYPE_CHECKING` block to ensure type imports are only active during static analysis, avoiding runtime dependencies on the stub package."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"As of `mypy-boto3-builder` version 8.12.0, Python 3.8 support has been removed. All `mypy-boto3` packages, including this one, now require Python >=3.9.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0 (and generated stubs)"},{"fix":"Review your code for any explicit imports of `TypeDef` names and adjust according to the new naming conventions if they were affected.","message":"The `mypy-boto3-builder` (version 8.9.0) introduced changes to how TypeDef names are generated, potentially shortening them (e.g., `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`) or adjusting postfixes for conflicting names. While specific to the builder, this impacts all generated service stubs if such naming conflicts existed.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0 (and generated stubs)"},{"fix":"Install `boto3-stubs` with the appropriate extras (`[full]`, `[all]`, or specific service names) to get type annotations for other AWS services.","message":"This package provides type stubs *only* for the `MarketplaceDeploymentService`. For comprehensive `boto3` type annotations covering all services, you should install the `boto3-stubs` metapackage (e.g., `pip install boto3-stubs[full]`) or specific service stubs for each service you use (e.g., `pip install boto3-stubs[s3,ec2]`). Installing only this package will not provide types for other boto3 services.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Encapsulate type imports: `from typing import TYPE_CHECKING\\nif TYPE_CHECKING:\\n    from mypy_boto3_marketplace_deployment import MarketplaceDeploymentServiceClient`","message":"It is highly recommended to wrap `mypy-boto3` type imports within `if TYPE_CHECKING:` blocks. This prevents the stub packages from becoming runtime dependencies, keeping your production environment lighter and cleaner. Tools like Pylint might complain about undefined variables without this pattern or by assigning `object` in the `else` branch.","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"}