feat: any cloud event
Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
parent
2b6483046a
commit
4488201812
|
@ -1,5 +1,6 @@
|
||||||
import abc
|
import abc
|
||||||
import typing
|
import typing
|
||||||
|
from typing import TypeVar
|
||||||
|
|
||||||
|
|
||||||
class AbstractCloudEvent(abc.ABC):
|
class AbstractCloudEvent(abc.ABC):
|
||||||
|
@ -69,3 +70,6 @@ class AbstractCloudEvent(abc.ABC):
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return str({"attributes": self._attributes_read_model, "data": self.data})
|
return str({"attributes": self._attributes_read_model, "data": self.data})
|
||||||
|
|
||||||
|
|
||||||
|
AnyCloudEvent = TypeVar("AnyCloudEvent", bound=AbstractCloudEvent)
|
||||||
|
|
Loading…
Reference in New Issue