{"id":27488,"library":"types-boto3-events","title":"types-boto3-events","description":"Type annotations for boto3 EventBridge (Amazon EventBridge) service, generated with mypy-boto3-builder. This package provides static type stubs for boto3's events client, enabling type checking and autocomplete in IDEs. Version 1.43.0 targets the EventBridge API version 1.43.0. Released weekly.","status":"active","version":"1.43.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","type-stubs","eventbridge","mypy","aws","typing"],"install":[{"cmd":"pip install types-boto3-events","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Core dependency for boto3 stubs","package":"boto3-stubs","optional":false},{"reason":"Runtime dependency for Python <3.11","package":"typing-extensions","optional":true}],"imports":[{"note":"Type stubs are in the mypy_boto3_events namespace, not boto3","wrong":"from boto3.events import EventBridgeClient","symbol":"EventBridgeClient","correct":"from mypy_boto3_events.client import EventBridgeClient"},{"note":"","wrong":"","symbol":"ListEventBusesPaginator","correct":"from mypy_boto3_events.paginator import ListEventBusesPaginator"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_events import EventBridgeClient\n\nclient: EventBridgeClient = boto3.client('events', region_name='us-east-1')\nprint(client.list_event_buses()['EventBuses'])","lang":"python","description":"Verify type-annotated client works"},"warnings":[{"fix":"Update any references to shortened TypeDef names accordingly.","message":"In version 8.9.0, TypeDef names for packed method arguments were shortened (e.g., CreateDistributionRequestRequestTypeDef became CreateDistributionRequestTypeDef), which may break code relying on old names.","severity":"breaking","affected_versions":"<1.43.0 (if using builder 8.9.0+)"},{"fix":"Upgrade Python to 3.9 or later, or pin an older version of types-boto3-events if Python 3.8 is required.","message":"In version 8.12.0, support for Python 3.8 was dropped. This package now requires Python >=3.9.","severity":"breaking","affected_versions":"1.43.0+"},{"fix":"Use 'pip install types-boto3-events' and keep it updated alongside boto3.","message":"Ensure you have installed the matching version of types-boto3-events for your boto3 version. Mismatches can cause type errors or missing attributes.","severity":"gotcha","affected_versions":"all"},{"fix":"Install types-boto3-events directly instead of using the old extra.","message":"Legacy mypy-boto3 product was moved to a separate package and is no longer generated along with boto3-stubs. If you rely on the old 'boto3-stubs[events]' extra, update to 'types-boto3-events'.","severity":"deprecated","affected_versions":"since builder 8.9.0 (approx 2024)"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install types-boto3-events","cause":"The types package is not installed.","error":"ModuleNotFoundError: No module named 'mypy_boto3_events'"},{"fix":"Use 'from mypy_boto3_events.client import EventBridgeClient' instead.","cause":"Trying to import the client from the wrong module.","error":"Cannot find reference 'EventBridgeClient' in 'boto3.events'"},{"fix":"Use boto3.client('events') and annotate the result with the type: client: EventBridgeClient = boto3.client('events')","cause":"Trying to use 'mypy_boto3_events.client' as a factory, but it only contains type stubs.","error":"AttributeError: module 'mypy_boto3_events' has no attribute 'client'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}