{"id":3612,"library":"mypy-boto3-launch-wizard","title":"mypy-boto3-launch-wizard","description":"mypy-boto3-launch-wizard provides type annotations for the `boto3` LaunchWizard service. It is currently at version 1.42.30 and is part of the `mypy-boto3` ecosystem, with new versions released regularly in sync with `boto3` updates, generated by `mypy-boto3-builder`.","status":"active","version":"1.42.30","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","stubs","launch-wizard","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-launch-wizard","lang":"bash","label":"Install standalone stubs"},{"cmd":"pip install 'boto3-stubs[launch-wizard]'","lang":"bash","label":"Install as part of boto3-stubs"}],"dependencies":[{"reason":"This package provides type stubs for the `boto3` library; `boto3` itself is a runtime dependency for your application.","package":"boto3","optional":false},{"reason":"Required for proper type-checking support on Python versions older than 3.9, and explicitly mentioned in builder release notes.","package":"typing-extensions","optional":true}],"imports":[{"note":"For explicit type annotation of the boto3 client object.","symbol":"LaunchWizardClient","correct":"from mypy_boto3_launch_wizard.client import LaunchWizardClient"},{"note":"For literal type hints for the service name.","symbol":"LaunchWizardServiceName","correct":"from mypy_boto3_launch_wizard.literals import LaunchWizardServiceName"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_launch_wizard.client import LaunchWizardClient\n\n\ndef get_launch_wizard_client() -> LaunchWizardClient:\n    \"\"\"Provides a type-hinted AWS LaunchWizard client.\"\"\"\n    # boto3.client is dynamically typed, so explicit annotation is needed for mypy\n    client: LaunchWizardClient = boto3.client(\n        \"launch-wizard\",\n        region_name=os.environ.get('AWS_DEFAULT_REGION', 'us-east-1'),\n        aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),\n        aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', '')\n    )\n    return client\n\n# Example usage:\nif __name__ == \"__main__\":\n    import os\n    client = get_launch_wizard_client()\n    try:\n        # Replace with an actual LaunchWizard API call, e.g., listing deployments\n        # This will provide type hints for available methods and parameters\n        response = client.list_deployments()\n        print(\"Successfully retrieved LaunchWizard deployments (or similar call).\")\n        print(f\"Deployments: {response.get('deployments', [])}\")\n    except Exception as e:\n        print(f\"An error occurred: {e}\")\n        print(\"Ensure AWS credentials and region are configured.\")\n\n","lang":"python","description":"This quickstart demonstrates how to obtain a type-hinted AWS LaunchWizard client using `boto3` and the `mypy-boto3-launch-wizard` stubs. It uses a `TYPE_CHECKING` block to ensure the stubs are only used for static analysis, preventing a runtime dependency if desired."},"warnings":[{"fix":"Upgrade Python to 3.9 or newer.","message":"Python 3.8 support was removed for all `mypy-boto3` packages (including this one) as of `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 or older must upgrade their Python version.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder generated packages"},{"fix":"Update your TypeDef import names to match the new shorter conventions or consult the specific service documentation for the correct TypeDef names.","message":"Some TypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. This can lead to breaking type check errors if you're using explicit TypeDef imports.","severity":"breaking","affected_versions":">=8.9.0 of mypy-boto3-builder generated packages"},{"fix":"Ensure your `mypy` and IDE configurations are up-to-date and correctly configured for PEP 561 type stub discovery. Usually, no manual action is needed if `mypy` is correctly set up.","message":"Starting with `mypy-boto3-builder` 8.12.0, all generated packages migrated to PEP 561 (distribution of type information for Python packages). While this generally improves compatibility, it might require ensuring your type checkers (like mypy) are up-to-date and correctly configured to discover PEP 561 compliant stub packages.","severity":"gotcha","affected_versions":">=8.12.0 of mypy-boto3-builder generated packages"},{"fix":"Consider using `boto3-stubs-lite[launch-wizard]` (if available) or rely on external type checkers like `mypy` or `pyright`.","message":"PyCharm users might experience slow performance and high CPU usage due to an issue with Literal overloads (issue PY-40997). It is recommended to use the `boto3-stubs-lite` version if available for the service or disable PyCharm's type checker and rely on `mypy`/`pyright` instead.","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"}