feat: any cloud event

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

View File

@ -1,5 +1,6 @@
import abc
import typing
from typing import TypeVar
class AbstractCloudEvent(abc.ABC):
@ -69,3 +70,6 @@ class AbstractCloudEvent(abc.ABC):
def __repr__(self) -> str:
return str({"attributes": self._attributes_read_model, "data": self.data})
AnyCloudEvent = TypeVar("AnyCloudEvent", bound=AbstractCloudEvent)