diff --git a/cloudevents/sdk/event/abstract_event.py b/cloudevents/sdk/event/abstract_event.py index fa6ff62..aeefeb3 100644 --- a/cloudevents/sdk/event/abstract_event.py +++ b/cloudevents/sdk/event/abstract_event.py @@ -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)