feat: create function
Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
parent
5f8399fa09
commit
2b6483046a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue