{"id":3017,"library":"mypy-boto3-appintegrations","title":"mypy-boto3-appintegrations","description":"mypy-boto3-appintegrations provides comprehensive type annotations for the AWS AppIntegrations Service, designed for use with the `boto3` library. It ensures strong static type checking for AppIntegrations client and related operations. The current version is 1.42.63, with updates released frequently in sync with `boto3` and AWS API changes, driven by the `mypy-boto3-builder` project.","status":"active","version":"1.42.63","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","type-hints","mypy","appintegrations","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-appintegrations","lang":"bash","label":"Install library"}],"dependencies":[{"reason":"Provides the runtime functionality for which these type stubs are generated. The stub version should ideally match boto3's major.minor version.","package":"boto3","optional":false},{"reason":"The primary type checker that consumes these stub files.","package":"mypy","optional":true}],"imports":[{"note":"Used for type-hinting the boto3 AppIntegrations client object.","symbol":"AppIntegrationsClient","correct":"from mypy_boto3_appintegrations.client import AppIntegrationsClient"},{"note":"Used for type-hinting specific AppIntegrations service TypedDict definitions.","symbol":"ListApplicationsResponseTypeDef","correct":"from mypy_boto3_appintegrations.type_defs import ListApplicationsResponseTypeDef"},{"note":"The stub package itself is not meant for direct runtime import. Type checkers automatically find it. If you need runtime access to stub properties (rare), guard with `TYPE_CHECKING`.","wrong":"import mypy_boto3_appintegrations","symbol":"mypy_boto3_appintegrations","correct":"import boto3; from typing import TYPE_CHECKING; if TYPE_CHECKING: import mypy_boto3_appintegrations"}],"quickstart":{"code":"import boto3\nimport os\nfrom typing import TYPE_CHECKING\n\n# These imports are only for type checking, not for runtime execution\nif TYPE_CHECKING:\n    from mypy_boto3_appintegrations.client import AppIntegrationsClient\n    from mypy_boto3_appintegrations.type_defs import ListApplicationsResponseTypeDef\n\ndef list_app_integrations_applications(\n    client: 'AppIntegrationsClient'\n) -> 'ListApplicationsResponseTypeDef':\n    \"\"\"Lists existing Amazon AppIntegrations applications.\"\"\"\n    response = client.list_applications()\n    return response\n\n# Initialize boto3 client (runtime code)\nregion = os.environ.get('AWS_REGION_NAME', 'us-east-1')\nappintegrations_client: 'AppIntegrationsClient' = boto3.client(\n    \"appintegrations\",\n    region_name=region\n)\n\n# Call the function with type-hinted client\ntry:\n    applications_data = list_app_integrations_applications(appintegrations_client)\n    print(f\"Successfully listed applications in region {region}.\")\n    for app in applications_data.get('Applications', []):\n        print(f\"  - Application ARN: {app.get('ApplicationArn')}\")\n    if applications_data.get('NextToken'):\n        print(f\"  (More applications available. Next Token: {applications_data['NextToken']})\")\nexcept Exception as e:\n    print(f\"Error listing applications: {e}\")","lang":"python","description":"Demonstrates how to initialize a `boto3` client and use it with type annotations provided by `mypy-boto3-appintegrations`. The `TYPE_CHECKING` block ensures that stub imports are only processed by type checkers."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer. The package's `requires_python` metadata is `>=3.9`.","message":"Python 3.8 is no longer supported for any `mypy-boto3` stub packages, including `mypy-boto3-appintegrations`, starting with `mypy-boto3-builder` version 8.12.0.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0, affecting all generated stub packages since then."},{"fix":"Update your `TypedDict` import names to reflect the new shorter or re-ordered conventions.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. Names like `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`, and `Extra` postfixes were re-ordered. This may cause type checker errors if you import specific `TypedDict` names.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0, affecting all generated stub packages since then."},{"fix":"Use `boto3` for runtime operations. The stub package is automatically consumed by type checkers like `mypy`.","message":"The `mypy-boto3-appintegrations` package provides type hints for `boto3` but is not a runtime library itself. Do not attempt to import it directly for runtime execution or instantiate objects from it.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Install `mypy-boto3-appintegrations` with a version that matches your `boto3` version, e.g., `pip install 'boto3==1.x.y' 'mypy-boto3-appintegrations==1.x.z'` where 'x' should ideally match.","message":"For optimal type checking, ensure that the version of `mypy-boto3-appintegrations` aligns with the major.minor version of your installed `boto3` library. Mismatched versions can lead to incorrect type hints or missing definitions.","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"}