{"id":3083,"library":"mypy-boto3-elasticbeanstalk","title":"mypy-boto3-elasticbeanstalk Type Annotations for AWS ElasticBeanstalk","description":"mypy-boto3-elasticbeanstalk provides type annotations (stubs) for the boto3 AWS ElasticBeanstalk client, enhancing static type checking capabilities for your Python code. It is currently at version 1.42.61, generated with mypy-boto3-builder 8.12.0. The `mypy-boto3` project frequently releases updates, often in sync with new boto3 versions and builder improvements.","status":"active","version":"1.42.61","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-stubs","elasticbeanstalk","typing"],"install":[{"cmd":"pip install mypy-boto3-elasticbeanstalk","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"Provides the actual AWS SDK runtime; these stubs provide type hints for it.","package":"boto3","optional":false}],"imports":[{"symbol":"ElasticBeanstalkClient","correct":"from mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient"},{"note":"For proper type checking, explicitly type the client variable or ensure your type checker automatically infers it after stubs are installed.","wrong":"client = boto3.client(\"elasticbeanstalk\") # Returns Any without stubs","symbol":"Client (typed)","correct":"import boto3\nfrom mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient\n\nclient: ElasticBeanstalkClient = boto3.client(\"elasticbeanstalk\")"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient\n\n# Get a typed ElasticBeanstalk client\nelb_client: ElasticBeanstalkClient = boto3.client(\"elasticbeanstalk\")\n\n# Example: List applications (result will be fully typed)\nresponse = elb_client.describe_applications()\n\nprint(f\"Found {len(response['Applications'])} ElasticBeanstalk applications:\")\nfor app in response['Applications']:\n    print(f\"- {app['ApplicationName']}\")\n","lang":"python","description":"This quickstart demonstrates how to obtain a type-hinted ElasticBeanstalk client using `boto3` and then call a method, leveraging the provided type stubs for improved development experience."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or a later version.","message":"Support for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0, which was used to generate this package version. Users on Python 3.8 will need to upgrade to Python 3.9 or newer.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (and packages generated by it, including mypy-boto3-elasticbeanstalk >= 1.42.x)"},{"fix":"Ensure your MyPy configuration is up-to-date and type checkers can properly locate `py.typed` files. Re-running type checks after upgrading should reveal any issues.","message":"The `mypy-boto3-builder` migrated to PEP 561 packages in version 8.12.0. While this improves discoverability for type checkers, it changes the internal package structure. If you have custom type checking configurations or older MyPy versions, you might need to adjust them.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (and packages generated by it, including mypy-boto3-elasticbeanstalk >= 1.42.x)"},{"fix":"Review your code for direct imports or usage of `TypeDef` names from `mypy_boto3_elasticbeanstalk.type_defs` and adjust them according to the latest definitions in the generated stub files.","message":"Some generated `TypeDef` names underwent breaking changes in `mypy-boto3-builder` 8.9.0 (e.g., `CreateDistributionRequestRequestTypeDef` changed to `CreateDistributionRequestTypeDef`). While not specific to ElasticBeanstalk in the release notes, this change pattern could apply to other service definitions.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0 (and packages generated by it)"},{"fix":"Ensure `pip install boto3` is executed alongside `pip install mypy-boto3-elasticbeanstalk`.","message":"These stubs provide type hints for `boto3`. To use them effectively, you must also have `boto3` installed in your environment. The stubs do not include the runtime functionality of `boto3` itself.","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"}