{"id":6730,"library":"mypy-boto3-elementalinference","title":"mypy-boto3-elementalinference Type Annotations","description":"mypy-boto3-elementalinference provides type annotations for the AWS ElementalInference service for boto3. It enhances the development experience by offering static type checking, autocompletion, and refactoring support for boto3 client methods and data structures related to ElementalInference. The library is actively maintained with frequent updates, aligning with boto3 releases and schema changes, and is currently at version 1.42.56.","status":"active","version":"1.42.56","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","type-hints","mypy","elementalinference","stubs","static analysis"],"install":[{"cmd":"pip install mypy-boto3-elementalinference boto3","lang":"bash","label":"Install type stubs and boto3"}],"dependencies":[{"reason":"Runtime dependency: This package provides type stubs for boto3; boto3 itself must be installed to run the code that utilizes these types.","package":"boto3","optional":false},{"reason":"Internal dependency for consistent type stubs within the mypy-boto3 ecosystem, required by the generated stub package.","package":"types-botocore-boto3","optional":false}],"imports":[{"symbol":"ElementalInferenceClient","correct":"from mypy_boto3_elementalinference.client import ElementalInferenceClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_elementalinference.client import ElementalInferenceClient\nfrom typing import TYPE_CHECKING\n\n# This library provides type annotations. The actual boto3 library must be installed separately.\n\n# During type checking (e.g., with mypy, VSCode, PyCharm), the client will be strongly typed.\n# At runtime, it behaves like a standard boto3 client.\nif TYPE_CHECKING:\n    client: ElementalInferenceClient = boto3.client(\"elemental-inference\")\nelse:\n    client = boto3.client(\"elemental-inference\", region_name=\"us-east-1\")\n\nprint(f\"Successfully initialized boto3 client for ElementalInference.\")\nprint(f\"Client type (for type checkers): {type(client)}\")\n\n# You can now use 'client' with type-hinting support in your IDE/type checker.\n# Example: Accessing a method with type-hinting benefits\n# try:\n#     # This is a placeholder; replace with an actual ElementalInference method\n#     response = client.invoke_model(ModelId=\"your-model-id\", Body=b\"{}\", ContentType=\"application/json\")\n#     print(f\"Example call response: {response}\")\n# except Exception as e:\n#     print(f\"Error during example call: {e}\")","lang":"python","description":"Illustrates how to initialize a boto3 client and apply the type annotations provided by `mypy-boto3-elementalinference`. This allows tools like Mypy, Pyright, VSCode, and PyCharm to perform static analysis and provide autocompletion for ElementalInference service methods and responses. Ensure `boto3` is also installed in your environment."},"warnings":[{"fix":"Upgrade your Python environment to version 3.9 or newer. If downgrading is not an option, you must use an older version of `mypy-boto3-elementalinference` that was generated with a builder version prior to 8.12.0.","message":"Support for Python 3.8 was officially removed with `mypy-boto3-builder` version 8.12.0 and subsequent generated packages. This library now requires Python 3.9 or newer.","severity":"breaking","affected_versions":"8.12.0+ (builder)"},{"fix":"Update imports and references to affected TypeDef names in your codebase according to the new conventions. Review the `mypy-boto3` documentation for service-specific TypeDef changes if you encounter type-checking errors.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` version 8.9.0. Some TypeDef names for packed method arguments became shorter (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).","severity":"breaking","affected_versions":"8.9.0+ (builder)"},{"fix":"Ensure `boto3` is explicitly included in your project's dependencies and installed in your environment (e.g., `pip install boto3 mypy-boto3-elementalinference`).","message":"This package provides type stubs only and is a 'type-checking only' dependency (PEP 561). The actual `boto3` library must be installed separately for your code to run at runtime. Without `boto3`, you will encounter `ModuleNotFoundError` or similar runtime errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Always refer to the latest `mypy-boto3` documentation or `boto3` service client names for the most up-to-date service interactions.","message":"The `sms-voice` service was excluded from `mypy-boto3` builds in version 8.11.0, with users advised to use `pinpoint-sms-voice` instead. While this specifically affected the `sms-voice` stub package, it highlights that service names and availability can change, potentially affecting other less common services like ElementalInference in the future.","severity":"deprecated","affected_versions":"8.11.0+ (builder)"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[]}