{"id":3343,"library":"mypy-boto3-chime-sdk-identity","title":"mypy-boto3 Chime SDK Identity Stubs","description":"mypy-boto3-chime-sdk-identity is a type annotation package for the boto3 Chime SDK Identity service, currently at version 1.42.3. It provides comprehensive type hints for boto3 clients, resources, paginators, and waiters, enhancing developer experience with static analysis tools like mypy, PyCharm, and VSCode by enabling better autocomplete and compile-time error checking. The library follows a continuous release cadence, closely mirroring boto3 updates, and is generated by the 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","type-hints","mypy","stubs","chime","chimesdkidentity"],"install":[{"cmd":"pip install mypy-boto3-chime-sdk-identity boto3","lang":"bash","label":"Install stubs and boto3"}],"dependencies":[{"reason":"These are type stubs for boto3; the actual boto3 library must be installed for runtime functionality. The stubs themselves are not runnable code.","package":"boto3","optional":false}],"imports":[{"note":"Import for explicit type annotation of the boto3 client object.","symbol":"ChimeSDKIdentityClient","correct":"from mypy_boto3_chime_sdk_identity.client import ChimeSDKIdentityClient"},{"note":"Import for explicit type annotation of service response objects.","symbol":"ListAppInstancesResponseTypeDef","correct":"from mypy_boto3_chime_sdk_identity.type_defs import ListAppInstancesResponseTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_chime_sdk_identity.client import ChimeSDKIdentityClient\nfrom mypy_boto3_chime_sdk_identity.type_defs import ListAppInstancesResponseTypeDef\nimport os\n\n# Ensure boto3 is configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME env vars)\n# For a runnable example, these might be placeholders or rely on default AWS config\n# client: ChimeSDKIdentityClient = boto3.client(\n#     \"chime-sdk-identity\",\n#     region_name=os.environ.get('AWS_REGION', 'us-east-1')\n# )\n\n# Type-hinted client\nclient: ChimeSDKIdentityClient = boto3.client(\n    \"chime-sdk-identity\",\n    region_name=\"us-east-1\" # Replace with your desired region\n)\n\ntry:\n    # Use the client with type hints for methods and arguments\n    response: ListAppInstancesResponseTypeDef = client.list_app_instances(\n        MaxResults=5\n    )\n    print(\"Successfully listed App Instances:\")\n    for app_instance in response.get('AppInstances', []):\n        print(f\"  - AppInstanceArn: {app_instance['AppInstanceArn']}\")\n        print(f\"    Name: {app_instance['Name']}\")\n\nexcept client.exceptions.NotFoundException as e:\n    print(f\"Error: {e}\")\nexcept Exception as e:\n    print(f\"An unexpected error occurred: {e}\")\n","lang":"python","description":"This quickstart demonstrates how to initialize a Chime SDK Identity client with type annotations and make a sample API call (`list_app_instances`). The explicit type hints for the client and response objects allow static analysis tools to provide enhanced code completion and error checking."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer. The `requires_python` metadata for `mypy-boto3-chime-sdk-identity` indicates `>=3.9`.","message":"Starting with `mypy-boto3-builder` version 8.12.0, Python 3.8 is no longer supported for any generated `mypy-boto3` package. This package specifically requires Python >=3.9.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0"},{"fix":"Ensure your type checker (e.g., mypy) is up-to-date and correctly configured to handle PEP 561 stub packages. Typically, this is handled automatically by modern type checkers.","message":"`mypy-boto3-builder` version 8.12.0 migrated all packages to follow PEP 561 standards. This primarily affects how type checkers resolve modules, potentially changing behavior if you relied on older resolution methods.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0"},{"fix":"Review and update any explicit TypeDef imports or references in your code if you are upgrading from `mypy-boto3-builder` versions prior to 8.9.0 and were using affected TypeDefs.","message":"Builder version 8.9.0 introduced breaking changes to TypeDef naming conventions. Method argument TypeDefs may have shorter names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and `Extra` postfixes in conflicting TypeDefs were moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0"},{"fix":"Always install `boto3` in addition to `mypy-boto3-chime-sdk-identity` using `pip install boto3 mypy-boto3-chime-sdk-identity`.","message":"This package provides *type stubs* for `boto3`. For your Python code to run and interact with AWS, the `boto3` library itself must be installed in your environment alongside these stubs.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Consider using `boto3-stubs-lite` (if available for your service) or disabling PyCharm's internal type checker and using external tools like `mypy` or `pyright` via a plugin for better performance in PyCharm. Alternatively, ensure PyCharm is updated to the latest version, as this issue might be resolved in newer IDE releases.","message":"PyCharm users might experience slow performance or high CPU usage due to how it handles `Literal` overloads (PyCharm issue PY-40997).","severity":"gotcha","affected_versions":"All versions (PyCharm specific)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}