diff --git a/cloudevents/sdk/event/abstract_event.py b/cloudevents/sdk/event/abstract_event.py index 29b15f5..fa6ff62 100644 --- a/cloudevents/sdk/event/abstract_event.py +++ b/cloudevents/sdk/event/abstract_event.py @@ -3,6 +3,14 @@ import typing class AbstractCloudEvent(abc.ABC): + @classmethod + def create( + cls, + attributes: typing.Dict[str, typing.Any], + data: typing.Optional[typing.Any], + ) -> "AbstractCloudEvent": + raise NotImplementedError() + @property def _attributes_read_model(self) -> typing.Dict[str, typing.Any]: raise NotImplementedError()