diff --git a/cloudevents/abstract/event.py b/cloudevents/abstract/event.py index 1bf65b1..d065f76 100644 --- a/cloudevents/abstract/event.py +++ b/cloudevents/abstract/event.py @@ -58,9 +58,13 @@ class CloudEvent(abc.ABC): ) return False - # Data access is handled via `.data` member - # Attribute access is managed via Mapping type def __getitem__(self, key: str) -> typing.Any: + """ + Data access is handled via `.data` member + Attribute access is managed via Mapping type + :param key: The event attribute name. + :return: The event attribute value. + """ return self._attributes_read_model[key] def get(