feat: create function

Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
Alexander Tkachev 2022-07-22 23:38:49 +03:00
parent 5f8399fa09
commit 2b6483046a
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@ import typing
class AbstractCloudEvent(abc.ABC): class AbstractCloudEvent(abc.ABC):
@classmethod
def create(
cls,
attributes: typing.Dict[str, typing.Any],
data: typing.Optional[typing.Any],
) -> "AbstractCloudEvent":
raise NotImplementedError()
@property @property
def _attributes_read_model(self) -> typing.Dict[str, typing.Any]: def _attributes_read_model(self) -> typing.Dict[str, typing.Any]:
raise NotImplementedError() raise NotImplementedError()